projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ba2f8a
)
libertas: let __lbs_cmd() free its own cmdnode
author
David Woodhouse
<dwmw2@infradead.org>
Sat, 15 Dec 2007 07:06:16 +0000
(
02:06
-0500)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Jan 2008 23:07:34 +0000
(15:07 -0800)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/libertas/cmd.c
b/drivers/net/wireless/libertas/cmd.c
index 4c0bd9f5c196c6a304b3d16a73d69a399f17366b..e7f07c3098f4e36d618276d0acd5034a889a2c95 100644
(file)
--- a/
drivers/net/wireless/libertas/cmd.c
+++ b/
drivers/net/wireless/libertas/cmd.c
@@
-1310,7
+1310,8
@@
void lbs_complete_command(struct lbs_private *priv, struct cmd_ctrl_node *cmd,
cmd->cmdwaitqwoken = 1;
wake_up_interruptible(&cmd->cmdwait_q);
- __lbs_cleanup_and_insert_cmd(priv, cmd);
+ if (!cmd->callback)
+ __lbs_cleanup_and_insert_cmd(priv, cmd);
priv->cur_cmd = NULL;
}
@@
-2219,6
+2220,7
@@
int __lbs_cmd(struct lbs_private *priv, uint16_t command,
priv->cur_cmd_retcode = 0;
ret = -1;
}
+ __lbs_cleanup_and_insert_cmd(priv, cmdnode);
spin_unlock_irqrestore(&priv->driver_lock, flags);
done: