mwifiex: sdio: fix use after free issue for save_adapter
authorAmitkumar Karwar <akarwar@marvell.com>
Thu, 1 Dec 2016 13:53:31 +0000 (19:23 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 30 Dec 2016 11:19:40 +0000 (13:19 +0200)
commit74c8719b8ee0922593a5cbec0bd6127d86d8a2f4
tree25744644e81f296298a2419398072cd0a42f5ff0
parentd15697de60db5570532fdedb8e13b2251d65b8e3
mwifiex: sdio: fix use after free issue for save_adapter

If we have sdio work requests received when sdio card reset is
happening, we may end up accessing older save_adapter pointer
later which is already freed during card reset.
This patch solves the problem by cancelling those pending requests.

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