summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-25 23:33:28 +0200
committerJohn W. Linville <linville@tuxdriver.com>2007-06-11 20:28:43 +0200
commit6cfb00823872d0181c5c72c2d457de93518d96e7 (patch)
tree102cd416b1ab479b08a89c14f299a3126c5528be /drivers/net/wireless
parent[PATCH] libertas: fix debug enter/leave prints for libertas_execute_next_command (diff)
downloadlinux-6cfb00823872d0181c5c72c2d457de93518d96e7.tar.xz
linux-6cfb00823872d0181c5c72c2d457de93518d96e7.zip
[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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/libertas/cmdresp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c
index 6bf50c1eeb93..c0c04711196f 100644
--- a/drivers/net/wireless/libertas/cmdresp.c
+++ b/drivers/net/wireless/libertas/cmdresp.c
@@ -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);