linux-stable/net/nfc/nci
Amitkumar Karwar fa9be5f009 NFC: NCI: Cancel cmd_timer in nci_close_device()
nci_close_device() sends nci reset command to the device.
If there is no response for this command, nci request timeout
occurs first and then cmd timeout happens. Because command
timer has started after sending the command.

We are immediately flushing command workqueue after nci
timeout. Later we will try to schedule cmd_work in command
timer which leads to a crash.

Cancel cmd_timer before flushing the workqueue to fix the
problem.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2014-01-05 23:20:15 +01:00
..
core.c NFC: NCI: Cancel cmd_timer in nci_close_device() 2014-01-05 23:20:15 +01:00
data.c nfc: Fix FSF address in file headers 2013-12-11 10:56:21 -05:00
Kconfig NFC: Fix NCI over SPI build 2013-07-19 16:55:26 +02:00
lib.c nfc: Fix FSF address in file headers 2013-12-11 10:56:21 -05:00
Makefile NFC: Add basic NCI over SPI 2013-06-14 13:44:03 +02:00
ntf.c nfc: Fix FSF address in file headers 2013-12-11 10:56:21 -05:00
rsp.c nfc: Fix FSF address in file headers 2013-12-11 10:56:21 -05:00
spi.c NFC: NCI: Modify NCI SPI to implement CS/INT handshake per the spec 2013-09-25 14:59:56 +02:00