From: Samuel Ortiz Date: Wed, 13 Nov 2013 00:00:07 +0000 (+0100) Subject: NFC: Return driver failure upon unknown event reception X-Git-Tag: v4.14-rc1~8188^2~3^2^2~44^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=249eb5bd74553da189fbff90c20c6d884a1db71e;p=platform%2Fkernel%2Flinux-rpi.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 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)