OSDN Git Service

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