mwifiex: fix system crash observed during initialisation
authorZhaoyang Liu <liuzy@marvell.com>
Wed, 22 Jul 2015 11:53:44 +0000 (04:53 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 6 Aug 2015 07:13:56 +0000 (10:13 +0300)
commitd788ac29793ae591801103b714c20ca3ae311c21
tree4d24419c78e2930e7fffee626d51c982e9170ce3
parent398750992ebe8a3f26d9c1c978911b55c2b2ff8b
mwifiex: fix system crash observed during initialisation

System crash was observed if one of the driver initialisation
commands is timed out. The reason is our timeout handler triggers
firmware dump, meanwhile driver initialisation error paths have
already freed the adapter structure.

Firmware hasn't yet completely initialized. So collecting firmware
dump is not needed in this case. Command timeout handler is
modified in this patch to fix the crash issue.

Signed-off-by: Zhaoyang Liu <liuzy@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/cmdevt.c