]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: cancel pcie/sdio work in remove/shutdown handler
authorXinming Hu <huxm@marvell.com>
Wed, 13 Dec 2017 11:27:53 +0000 (19:27 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jan 2018 17:38:11 +0000 (19:38 +0200)
commitec847b2c725ee048fea83e6b0c2bbc523405eef6
tree282df9f6011a61da59db4a3672ecce7a1290b43f
parentc7cfaed52cda64d335967ed797e28babc93a92b2
mwifiex: cancel pcie/sdio work in remove/shutdown handler

The last command used to shutdown firmware might be timeout,
and trigger firmware dump in asynchronous pcie/sdio work.

The remove/shutdown handler will continue free core data
structure private/adapter, which might be dereferenced in
pcie/sdio work, finally crash the kernel.

Sync and Cancel pcie/sdio work, could be a fix for above
cornel case. In this way, the last command timeout could
be handled properly.

Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c
drivers/net/wireless/marvell/mwifiex/sdio.c