NFC: Do not return EBUSY when stopping a poll that's already stopped
commita831b9132065e1aa18acd7910d5f9c164a2f350f
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Jun 2012 14:41:57 +0000 (28 16:41 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Jul 2012 20:42:21 +0000 (9 16:42 -0400)
tree9cbaf7e194641e24e8e2f95e5d6f14cce9b7ff88
parent1550bf2d59a5ab74c5c14f2e65ed83516ca7d74d
NFC: Do not return EBUSY when stopping a poll that's already stopped

We check for the polling flag before checking if the netlink PID caller
match.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/netlink.c