summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c
diff options
context:
space:
mode:
authorXinming Hu <huxm@marvell.com>2016-04-11 07:52:40 -0700
committerKalle Valo <kvalo@codeaurora.org>2016-04-14 16:01:46 +0300
commitc3ec0ff6425b86655aa34b5c6cb0f7b6d559c6b2 (patch)
treee1b59c86373bd1218a2915a5ebabe508b2c1e708 /drivers/net/wireless/marvell/mwifiex/sta_ioctl.c
parentb9db397879333c272f2bc888cd713773e7d2604f (diff)
mwifiex: do not wait on semaphore during card removal
Host hang is observed if card is removed before firmware download gets completed. In this case, firmware will be failed to download and adapter structure gets freed. In other thread, mwifiex_remove_card() waits on semaphore until the firmware download fails. This wait is not necessary and may result in invalid adapter access. This patch uses down_trylock to return immediately so that hang issue won't occur. Signed-off-by: Xinming Hu <huxm@marvell.com> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/sta_ioctl.c')
0 files changed, 0 insertions, 0 deletions