From: Arik Nemtsov Date: Sun, 12 May 2013 09:35:29 +0000 (+0300) Subject: wlcore: cancel channel switch work on interface removal X-Git-Tag: next-20130619~67^2~18^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c838478b7b78d6e212547cd2243031080f2cee45;p=karo-tx-linux.git wlcore: cancel channel switch work on interface removal Otherwise, if the work is pending, we might get a bad dereference after the interface is removed. Signed-off-by: Arik Nemtsov Signed-off-by: Eliad Peller Signed-off-by: Luciano Coelho --- diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 7ee422f97c10..ed200c61b231 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -2589,6 +2589,7 @@ unlock: cancel_work_sync(&wlvif->rx_streaming_enable_work); cancel_work_sync(&wlvif->rx_streaming_disable_work); cancel_delayed_work_sync(&wlvif->connection_loss_work); + cancel_delayed_work_sync(&wlvif->channel_switch_work); mutex_lock(&wl->mutex); }