aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/netlink.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c
index 061711f47476..1d76d38c4a24 100644
--- a/net/nfc/netlink.c
+++ b/net/nfc/netlink.c
@@ -504,12 +504,10 @@ static int nfc_genl_rcv_nl_event(struct notifier_block *this,
504 dev = nfc_device_iter_next(&iter); 504 dev = nfc_device_iter_next(&iter);
505 505
506 while (dev) { 506 while (dev) {
507 mutex_lock(&dev->genl_data.genl_data_mutex);
508 if (dev->genl_data.poll_req_pid == n->pid) { 507 if (dev->genl_data.poll_req_pid == n->pid) {
509 nfc_stop_poll(dev); 508 nfc_stop_poll(dev);
510 dev->genl_data.poll_req_pid = 0; 509 dev->genl_data.poll_req_pid = 0;
511 } 510 }
512 mutex_unlock(&dev->genl_data.genl_data_mutex);
513 dev = nfc_device_iter_next(&iter); 511 dev = nfc_device_iter_next(&iter);
514 } 512 }
515 513