aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/nci/rsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/nfc/nci/rsp.c')
-rw-r--r--net/nfc/nci/rsp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/nfc/nci/rsp.c b/net/nfc/nci/rsp.c
index 2840ae2f3615..3c73e92eb625 100644
--- a/net/nfc/nci/rsp.c
+++ b/net/nfc/nci/rsp.c
@@ -151,7 +151,10 @@ static void nci_rf_deactivate_rsp_packet(struct nci_dev *ndev,
151 151
152 clear_bit(NCI_DISCOVERY, &ndev->flags); 152 clear_bit(NCI_DISCOVERY, &ndev->flags);
153 153
154 nci_req_complete(ndev, status); 154 /* If target was active, complete the request only in deactivate_ntf */
155 if ((status != NCI_STATUS_OK) ||
156 (!test_bit(NCI_POLL_ACTIVE, &ndev->flags)))
157 nci_req_complete(ndev, status);
155} 158}
156 159
157void nci_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb) 160void nci_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb)