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

Commit 6cfb0082 authored by Dan Williams's avatar Dan Williams Committed by John W. Linville
Browse files

[PATCH] libertas: correctly balance locking in libertas_process_rx_command



adapter->lock should released after unlocking adapter->driver_lock to
balance the order in which they were locked at the top of the function.

Signed-off-by: default avatarDan Williams <dcbw@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 24d443b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -826,8 +826,8 @@ int libertas_process_rx_command(wlan_private * priv)
				lbs_deb_cmd(
				       "Disconnected, Going to invoke libertas_ps_wakeup\n");

				mutex_unlock(&adapter->lock);
				spin_unlock_irqrestore(&adapter->driver_lock, flags);
				mutex_unlock(&adapter->lock);
				libertas_ps_wakeup(priv, 0);
				mutex_lock(&adapter->lock);
				spin_lock_irqsave(&adapter->driver_lock, flags);