From: Samuel Ortiz Date: Wed, 13 Nov 2013 00:00:07 +0000 (+0100) Subject: NFC: Return driver failure upon unknown event reception X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=249eb5bd74553da189fbff90c20c6d884a1db71e;p=linux-beck.git 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 --- 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)