Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c838478b authored by Arik Nemtsov's avatar Arik Nemtsov Committed by Luciano Coelho
Browse files

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: default avatarArik Nemtsov <arik@wizery.com>
Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent ba1e6eb9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2589,6 +2589,7 @@ static void __wl1271_op_remove_interface(struct wl1271 *wl,
	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);
}