]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
wlcore: cancel channel switch work on interface removal
authorArik Nemtsov <arik@wizery.com>
Sun, 12 May 2013 09:35:29 +0000 (12:35 +0300)
committerLuciano Coelho <coelho@ti.com>
Mon, 17 Jun 2013 09:14:29 +0000 (12:14 +0300)
Otherwise, if the work is pending, we might get
a bad dereference after the interface is removed.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/main.c

index 7ee422f97c10d7259f89524422c841deb943bf70..ed200c61b231f247f93397faf351a5cf2826b321 100644 (file)
@@ -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);
 }