aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/nci/core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c
index 9d0b5305c36e..3dffcb3221cc 100644
--- a/net/nfc/nci/core.c
+++ b/net/nfc/nci/core.c
@@ -722,7 +722,10 @@ static void nci_tx_work(struct work_struct *work)
722 if (!skb) 722 if (!skb)
723 return; 723 return;
724 724
725 atomic_dec(&ndev->credits_cnt); 725 /* Check if data flow control is used */
726 if (atomic_read(&ndev->credits_cnt) !=
727 NCI_DATA_FLOW_CONTROL_NOT_USED)
728 atomic_dec(&ndev->credits_cnt);
726 729
727 nfc_dbg("NCI TX: MT=data, PBF=%d, conn_id=%d, plen=%d", 730 nfc_dbg("NCI TX: MT=data, PBF=%d, conn_id=%d, plen=%d",
728 nci_pbf(skb->data), 731 nci_pbf(skb->data),