Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=794760f750655d987499d7a5034519afc84af63b
Commit:     794760f750655d987499d7a5034519afc84af63b
Parent:     b6e99dd6e2c5262e3c2b976d1d5f2c9405433d9a
Author:     Pierre Ossman <[EMAIL PROTECTED]>
AuthorDate: Mon Aug 20 12:24:42 2007 -0400
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:50:36 2007 -0700

    [PATCH] libertas: properly end commands on hardware failure
    
    Make sure that errors reported by the hardware layer is properly
    handled. Otherwise commands tend to get stuck in limbo.
    
    Signed-off-by: Pierre Ossman <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/libertas/cmd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/libertas/cmd.c 
b/drivers/net/wireless/libertas/cmd.c
index 98092b9..33dbed0 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -1009,7 +1009,9 @@ static int DownloadcommandToStation(wlan_private * priv,
        if (ret != 0) {
                lbs_deb_host("DNLD_CMD: hw_host_to_card failed\n");
                spin_lock_irqsave(&adapter->driver_lock, flags);
+               adapter->cur_cmd_retcode = ret;
                __libertas_cleanup_and_insert_cmd(priv, adapter->cur_cmd);
+               adapter->nr_cmd_pending--;
                adapter->cur_cmd = NULL;
                spin_unlock_irqrestore(&adapter->driver_lock, flags);
                goto done;
-
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