]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: scan delay timer cleanup in unload path
authorAmitkumar Karwar <akarwar@marvell.com>
Sat, 18 May 2013 00:50:19 +0000 (17:50 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 May 2013 19:08:47 +0000 (15:08 -0400)
commit650c30e9d7ab09f1a8543e9b4f56414fd6c5d421
treef6b74fb5f394c2997a94793318fa18efa7e2b069
parent2a50f72bdddba777a9dd89839ffb5fa7ce44615f
mwifiex: scan delay timer cleanup in unload path

Return from scan delay timer routine if surprise_removed flag
is true. Also, cancel the timer in unload path.

This fixes a crash when scan delay timer accesses structures
that have been freed already.

Tested with "iwlist mlan0 scan & sleep 1; rmmod mwifiex_sdio"

Reported-by: Daniel Drake <dsd@laptop.org>
Tested-by: Daniel Drake <dsd@laptop.org>
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/init.c