summaryrefslogtreecommitdiff
path: root/net/nfc/hci
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-11-13 04:00:07 +0400
committerSamuel Ortiz <sameo@linux.intel.com>2014-01-04 06:32:27 +0400
commit249eb5bd74553da189fbff90c20c6d884a1db71e (patch)
treea4ee582eb3ecbb71baff984bd58dbe69a1152641 /net/nfc/hci
parent34f7e57b231ec4fd943d0d172fb7c1bb143f1da8 (diff)
downloadlinux-249eb5bd74553da189fbff90c20c6d884a1db71e.tar.xz
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>
Diffstat (limited to 'net/nfc/hci')
-rw-r--r--net/nfc/hci/core.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c
index 3b9610031baa..d45b638e77c7 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)