diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-15 12:22:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-29 02:07:35 +0300 |
commit | ae125bf8278249b8c44168c5183f551c3ed28b84 (patch) | |
tree | 5f86f802b140620f6b01bc7f94702c8dc024e4f8 /drivers/net/wireless/libertas/main.c | |
parent | 75567670c66329a111c2b4f12d6c1fc02b3b14d2 (diff) | |
download | linux-ae125bf8278249b8c44168c5183f551c3ed28b84.tar.xz |
libertas: store command result in cmdnode instead of priv->cur_cmd_retcode
... at least for users of __lbs_cmd().
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 0dc7de6a067b..839ffe818c18 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c @@ -1237,6 +1237,7 @@ int lbs_stop_card(struct lbs_private *priv) /* Flush pending command nodes */ spin_lock_irqsave(&priv->driver_lock, flags); list_for_each_entry(cmdnode, &priv->cmdpendingq, list) { + cmdnode->result = -ENOENT; cmdnode->cmdwaitqwoken = 1; wake_up_interruptible(&cmdnode->cmdwait_q); } |