diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2015-01-30 03:40:05 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-02-03 08:28:53 -0500 |
commit | 7a1f4e61eb6417aecd20822a5f15e72d21c7f3f9 (patch) | |
tree | e53cfddb7b51c27ce9c58484831e9dbe7fb3b11d /drivers/net/wireless/mwifiex | |
parent | ee6f0dd8a836311883fedfe060f23e0da2176950 (diff) |
mwifiex: fix memory leak in mwifiex_send_processed_packet()
Memory is leaked after downloading already processed packet. This
patch fixes the problem by freeing returned skb. Other transmit
paths don't have this problem.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-rw-r--r-- | drivers/net/wireless/mwifiex/wmm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/wmm.c b/drivers/net/wireless/mwifiex/wmm.c index ffffd2c5a76e..ef717acec8b7 100644 --- a/drivers/net/wireless/mwifiex/wmm.c +++ b/drivers/net/wireless/mwifiex/wmm.c | |||
@@ -1228,6 +1228,9 @@ mwifiex_send_processed_packet(struct mwifiex_private *priv, | |||
1228 | case -EINPROGRESS: | 1228 | case -EINPROGRESS: |
1229 | if (adapter->iface_type != MWIFIEX_PCIE) | 1229 | if (adapter->iface_type != MWIFIEX_PCIE) |
1230 | adapter->data_sent = false; | 1230 | adapter->data_sent = false; |
1231 | break; | ||
1232 | case 0: | ||
1233 | mwifiex_write_data_complete(adapter, skb, 0, ret); | ||
1231 | default: | 1234 | default: |
1232 | break; | 1235 | break; |
1233 | } | 1236 | } |