projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34f7e57
)
NFC: Return driver failure upon unknown event reception
author
Samuel Ortiz
<sameo@linux.intel.com>
Wed, 13 Nov 2013 00:00:07 +0000
(
01:00
+0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Sat, 4 Jan 2014 02:32:27 +0000
(
03:32
+0100)
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>
net/nfc/hci/core.c
patch
|
blob
|
blame
|
history
diff --git
a/net/nfc/hci/core.c
b/net/nfc/hci/core.c
index 3b9610031baa2271fd7b00648b00709bdc483b95..d45b638e77c78ec25b8228eacf2ea0ac754ad8d7 100644
(file)
--- 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)