NFC: Core must test the device polling state inside the device lock
authorEric Lapuyade <eric.lapuyade@intel.com>
Thu, 3 May 2012 14:21:58 +0000 (16:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Jul 2012 20:42:09 +0000 (16:42 -0400)
commit8668fdd6efb3a75e0d58a3287a47fa7e60a68a73
tree27b4846b8243014391833f62937e4a2c20718a18
parenta070c8591a503ec65e2c84ebaf3454e5cd76e3fe
NFC: Core must test the device polling state inside the device lock

There can ever be only one call to nfc_targets_found() after polling
has been engaged. This could be from a target discovered event from
the driver, or from an error handler to notify poll will never complete.

Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/core.c