mwifiex: Fix an issue spotted by KASAN
authorGanapathi Bhat <gbhat@marvell.com>
Thu, 16 Jun 2016 13:22:21 +0000 (18:52 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 29 Jun 2016 15:53:59 +0000 (18:53 +0300)
commit4699fc3f2dcbcce27d499343c7b85b172b17ee76
tree1d8ec23ca0e361f60d4b11075a5706e22ee16b91
parent08aba42fcc7eea5e24558b3c59d1b9e86c3b9e75
mwifiex: Fix an issue spotted by KASAN

When an association command is sent to firmware but the process is
killed before the command response arrives, driver will try to
access bss_desc which is already freed. This issue is fixed by
checking return value of bss_start.

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