diff options
author | Ilan Elias <ilane@ti.com> | 2011-09-22 04:36:19 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-27 14:34:05 -0400 |
commit | 38f04c6b1b682f1879441e2925403ad9aff9e229 (patch) | |
tree | cfd23b3e84b078049b69b81a0fe10f4442ca503f /net/nfc/nci/data.c | |
parent | de054799b7ffee8ce1e3971a8dcd7816ccf04977 (diff) |
NFC: protect nci_data_exchange transactions
Protect 'cb' and 'cb_context' arguments in nci_data_exchange.
In fact, this implements a queue with max length of 1 data
exchange transactions in parallel.
Signed-off-by: Ilan Elias <ilane@ti.com>
Acked-by: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/nfc/nci/data.c')
-rw-r--r-- | net/nfc/nci/data.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/nfc/nci/data.c b/net/nfc/nci/data.c index 141790ada4aa..e5ed90fc1a9c 100644 --- a/net/nfc/nci/data.c +++ b/net/nfc/nci/data.c | |||
@@ -54,6 +54,8 @@ void nci_data_exchange_complete(struct nci_dev *ndev, | |||
54 | /* no waiting callback, free skb */ | 54 | /* no waiting callback, free skb */ |
55 | kfree_skb(skb); | 55 | kfree_skb(skb); |
56 | } | 56 | } |
57 | |||
58 | clear_bit(NCI_DATA_EXCHANGE, &ndev->flags); | ||
57 | } | 59 | } |
58 | 60 | ||
59 | /* ----------------- NCI TX Data ----------------- */ | 61 | /* ----------------- NCI TX Data ----------------- */ |