瀏覽代碼

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>
Samuel Ortiz 11 年之前
父節點
當前提交
249eb5bd74
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. 2 5
      net/nfc/hci/core.c

+ 2 - 5
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)