From: Amitkumar Karwar Date: Sat, 18 May 2013 00:50:19 +0000 (-0700) Subject: mwifiex: scan delay timer cleanup in unload path X-Git-Tag: v3.11-rc1~16^2~103^2^2~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06041118ef0908b9cae7657a7b734699bcf61a6c;p=pandora-kernel.git 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 Tested-by: Daniel Drake Signed-off-by: Amitkumar Karwar Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed