mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 06:34:12 +08:00
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>
This commit is contained in:
parent
34f7e57b23
commit
249eb5bd74
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user