NFC: llcp: Clean local timers and works when removing a device
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 21 Feb 2013 14:40:04 +0000 (15:40 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 8 Mar 2013 13:25:04 +0000 (14:25 +0100)
commit3536da06db0baa675f32de608c0a4c0f5ef0e9ff
tree584815bbafbb526300b00671d226744f0e411e2b
parentb141e811a0763bb107af4cd99d456193ccdb8053
NFC: llcp: Clean local timers and works when removing a device

Whenever an adapter is removed we must clean all the local structures,
especially the timers and scheduled work. Otherwise those asynchronous
threads will eventually try to access the freed nfc_dev pointer if an LLCP
link is up.

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