mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00: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
1 changed files with 2 additions and 5 deletions
|
@ -335,11 +335,8 @@ exit:
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
|
|
||||||
exit_noskb:
|
exit_noskb:
|
||||||
if (r) {
|
if (r)
|
||||||
/* TODO: There was an error dispatching the event,
|
nfc_hci_driver_failure(hdev, r);
|
||||||
* how to propagate up to nfc core?
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void nfc_hci_cmd_timeout(unsigned long data)
|
static void nfc_hci_cmd_timeout(unsigned long data)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue