]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix crash during simultaneous scan and connect
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 3 Jan 2012 00:18:40 +0000 (16:18 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 3 Jan 2012 19:40:45 +0000 (14:40 -0500)
commit19f1189469fd5daeaf939e33ac0d1d63c1d52fc6
tree628a5820226435e6f3b2e302c5dda8a80368c1d7
parent9d61a35d44fff92dda5250d41e8151afa1cafe61
mwifiex: fix crash during simultaneous scan and connect

If 'iw connect' command is fired when driver is already busy in
serving 'iw scan' command, ssid specific scan operation for connect
is skipped. In this case cmd wait queue handler gets called with no
command in queue (i.e. adapter->cmd_queued = NULL).

This patch adds a NULL check in mwifiex_wait_queue_complete()
routine to fix crash observed during simultaneous scan and assoc
operations.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sta_ioctl.c