diff options
author | John W. Linville <linville@tuxdriver.com> | 2013-01-28 20:43:00 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-28 20:43:00 +0100 |
commit | 4205e6ef4ee747aa81930537b6035086ba5f1e28 (patch) | |
tree | b2ebe2b4621f5f531f283cb9bf0005cd3c04ca7b /net/nfc/hci/hcp.c | |
parent | net: fix possible wrong checksum generation (diff) | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil... (diff) | |
download | linux-4205e6ef4ee747aa81930537b6035086ba5f1e28.tar.xz linux-4205e6ef4ee747aa81930537b6035086ba5f1e28.zip |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Diffstat (limited to 'net/nfc/hci/hcp.c')
-rw-r--r-- | net/nfc/hci/hcp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/nfc/hci/hcp.c b/net/nfc/hci/hcp.c index bc308a7ca609..b6b4109f2343 100644 --- a/net/nfc/hci/hcp.c +++ b/net/nfc/hci/hcp.c @@ -105,6 +105,13 @@ int nfc_hci_hcp_message_tx(struct nfc_hci_dev *hdev, u8 pipe, } mutex_lock(&hdev->msg_tx_mutex); + + if (hdev->shutting_down) { + err = -ESHUTDOWN; + mutex_unlock(&hdev->msg_tx_mutex); + goto out_skb_err; + } + list_add_tail(&cmd->msg_l, &hdev->msg_tx_queue); mutex_unlock(&hdev->msg_tx_mutex); |