[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: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
24d443b5d5
commit
6cfb008238
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user