Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6cfb00823872d0181c5c72c2d457de93518d96e7
Commit:     6cfb00823872d0181c5c72c2d457de93518d96e7
Parent:     24d443b5d568c6e11b07267e2d784f5f04aa5dac
Author:     Dan Williams <[EMAIL PROTECTED]>
AuthorDate: Fri May 25 17:33:28 2007 -0400
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Mon Jun 11 14:28:43 2007 -0400

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 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 6bf50c1..c0c0471 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to