]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: pn533: Fix missing lock while operating on commands list
authorSzymon Janc <szymon.janc@tieto.com>
Thu, 25 Oct 2012 15:29:45 +0000 (17:29 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 19 Nov 2012 23:09:25 +0000 (00:09 +0100)
commitcd9c87fc7ae34ab0621c588672ecb6317f0c281a
tree5a2947353b130138c3258cc135d596414aed667a
parentfb508db0f36378a17b4a2ef6d004b1959546c852
NFC: pn533: Fix missing lock while operating on commands list

In pn533_wq_cmd command was removed from list without cmd_lock held
(race with pn533_send_cmd_frame_async) which could lead to list
corruption. Delete command from list before releasing lock.

Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn533.c