]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: avoid double list_del in command cancel path
authorYogesh Ashok Powar <yogeshp@marvell.com>
Wed, 14 Dec 2011 04:43:16 +0000 (20:43 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Dec 2011 18:56:54 +0000 (13:56 -0500)
commit5608008cff7510a54188ca30fc000628895103dd
tree2d9e509c026d7772d1a1b51ed9e44299613f7539
parent1103312251401160ba9655b021048c6497728b13
mwifiex: avoid double list_del in command cancel path

Command cancel path cancels the current command and moves
it to free command queue. While doing that it deletes the
command entry from the pending list. This is not correct
as the entry has been already deleted from the pending
list at 'mwifiex_exec_next_cmd'. Fixing it.

Also making sure the stale command pointer is cleaned and
unaccessible for later use.

Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cmdevt.c