diff options
author | Dan Williams <dcbw@redhat.com> | 2007-05-25 17:33:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-06-11 14:28:43 -0400 |
commit | 6cfb00823872d0181c5c72c2d457de93518d96e7 (patch) | |
tree | 102cd416b1ab479b08a89c14f299a3126c5528be /drivers/net/wireless | |
parent | 24d443b5d568c6e11b07267e2d784f5f04aa5dac (diff) |
[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.c | 2 |
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) | |||
826 | lbs_deb_cmd( | 826 | lbs_deb_cmd( |
827 | "Disconnected, Going to invoke libertas_ps_wakeup\n"); | 827 | "Disconnected, Going to invoke libertas_ps_wakeup\n"); |
828 | 828 | ||
829 | mutex_unlock(&adapter->lock); | ||
830 | spin_unlock_irqrestore(&adapter->driver_lock, flags); | 829 | spin_unlock_irqrestore(&adapter->driver_lock, flags); |
830 | mutex_unlock(&adapter->lock); | ||
831 | libertas_ps_wakeup(priv, 0); | 831 | libertas_ps_wakeup(priv, 0); |
832 | mutex_lock(&adapter->lock); | 832 | mutex_lock(&adapter->lock); |
833 | spin_lock_irqsave(&adapter->driver_lock, flags); | 833 | spin_lock_irqsave(&adapter->driver_lock, flags); |