]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbf83bc6de412d8202f3177b5488d8c93f2d52083
tree1d8ec23ca0e361f60d4b11075a5706e22ee16b91
parentcc7d4339285a697b4f05bcb5e0729387907727db
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