summaryrefslogtreecommitdiffstats
path: root/kernel/net/nfc
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/nfc')
-rw-r--r--kernel/net/nfc/nci/hci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/nfc/nci/hci.c b/kernel/net/nfc/nci/hci.c
index ed54ec533..b33fed6d1 100644
--- a/kernel/net/nfc/nci/hci.c
+++ b/kernel/net/nfc/nci/hci.c
@@ -233,7 +233,7 @@ int nci_hci_send_cmd(struct nci_dev *ndev, u8 gate, u8 cmd,
r = nci_request(ndev, nci_hci_send_data_req, (unsigned long)&data,
msecs_to_jiffies(NCI_DATA_TIMEOUT));
- if (r == NCI_STATUS_OK)
+ if (r == NCI_STATUS_OK && skb)
*skb = conn_info->rx_skb;
return r;