Skip to content

Commit

Permalink
[PATCH] libertas: correctly balance locking in libertas_process_rx_co…
Browse files Browse the repository at this point in the history
…mmand

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>
  • Loading branch information
Dan Williams authored and John W. Linville committed Jun 11, 2007
1 parent 24d443b commit 6cfb008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/libertas/cmdresp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6cfb008

Please sign in to comment.