aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2011-09-22 00:43:25 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-09-27 14:34:04 -0400
commit5cf80993add2d01dcfe3283cb290998b9d3d72cd (patch)
tree5169c1dde2837376e0883021aa509f61014d2197 /drivers/net/wireless
parent4ed5d521b062b7256dcfe46a3194f89ff44fdc66 (diff)
mwifiex: reset skb length before inserting to free queue
After handling command response, cmd skb is inserted into command free queue(which keeps track of availabile skbs) for reuse purpose. Skb length is not getting reset to zero here. This patch takes care of it. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/mwifiex/cmdevt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/cmdevt.c b/drivers/net/wireless/mwifiex/cmdevt.c
index b5352afb8714..d12e25d0c880 100644
--- a/drivers/net/wireless/mwifiex/cmdevt.c
+++ b/drivers/net/wireless/mwifiex/cmdevt.c
@@ -90,6 +90,9 @@ mwifiex_clean_cmd_node(struct mwifiex_adapter *adapter,
90 cmd_node->data_buf = NULL; 90 cmd_node->data_buf = NULL;
91 cmd_node->wait_q_enabled = false; 91 cmd_node->wait_q_enabled = false;
92 92
93 if (cmd_node->cmd_skb)
94 skb_trim(cmd_node->cmd_skb, 0);
95
93 if (cmd_node->resp_skb) { 96 if (cmd_node->resp_skb) {
94 dev_kfree_skb_any(cmd_node->resp_skb); 97 dev_kfree_skb_any(cmd_node->resp_skb);
95 cmd_node->resp_skb = NULL; 98 cmd_node->resp_skb = NULL;