diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-11-13 01:00:07 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-01-04 03:32:27 +0100 |
commit | 249eb5bd74553da189fbff90c20c6d884a1db71e (patch) | |
tree | a4ee582eb3ecbb71baff984bd58dbe69a1152641 | |
parent | 34f7e57b231ec4fd943d0d172fb7c1bb143f1da8 (diff) | |
download | op-kernel-dev-249eb5bd74553da189fbff90c20c6d884a1db71e.zip op-kernel-dev-249eb5bd74553da189fbff90c20c6d884a1db71e.tar.gz |
NFC: Return driver failure upon unknown event reception
If the device is polling, this will trigger a netlink event to notify
userspace about the polling error.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | net/nfc/hci/core.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c index 3b96100..d45b638 100644 --- a/net/nfc/hci/core.c +++ b/net/nfc/hci/core.c @@ -335,11 +335,8 @@ exit: kfree_skb(skb); exit_noskb: - if (r) { - /* TODO: There was an error dispatching the event, - * how to propagate up to nfc core? - */ - } + if (r) + nfc_hci_driver_failure(hdev, r); } static void nfc_hci_cmd_timeout(unsigned long data) |