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)
commit51e708c1049e721b9c5c48d026bc97ca8497d39a
tree2d9e509c026d7772d1a1b51ed9e44299613f7539
parent10636bc2d60942254bda149827b922c41f4cb4af
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