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

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

wlcore: take the mutex before resetting Tx queues



Otherwise we risk contention for private members of our global structure
while op_stop_locked is running.

Reported-by: default avatarIdo Yariv <ido@wizery.com>
Signed-off-by: default avatarArik Nemtsov <arik@wizery.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent 4c145185
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1852,8 +1852,8 @@ static void wlcore_op_stop_locked(struct wl1271 *wl)
	cancel_delayed_work_sync(&wl->tx_watchdog_work);

	/* let's notify MAC80211 about the remaining pending TX frames */
	wl12xx_tx_reset(wl);
	mutex_lock(&wl->mutex);
	wl12xx_tx_reset(wl);

	wl1271_power_off(wl);
	/*