projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f11b0f0
)
[PATCH] mac80211: fix memory leak when defrag fragments
author
Hong Liu
<hong.liu@intel.com>
Thu, 17 May 2007 03:13:44 +0000
(11:13 +0800)
committer
John W. Linville
<linville@tuxdriver.com>
Tue, 29 May 2007 14:34:05 +0000
(10:34 -0400)
We forget to free all the fragments when defraging them into one packet.
Signed-off-by: Hong Liu <hong.liu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/ieee80211.c
b/net/mac80211/ieee80211.c
index 6e36df67f8d59b3ecc1c61089249a74454863862..145604abd08e16a2e65170987a13e153b5b9cb02 100644
(file)
--- a/
net/mac80211/ieee80211.c
+++ b/
net/mac80211/ieee80211.c
@@
-3278,8
+3278,10
@@
ieee80211_rx_h_defragment(struct ieee80211_txrx_data *rx)
return TXRX_DROP;
}
}
- while ((skb = __skb_dequeue(&entry->skb_list)))
+ while ((skb = __skb_dequeue(&entry->skb_list)))
{
memcpy(skb_put(rx->skb, skb->len), skb->data, skb->len);
+ dev_kfree_skb(skb);
+ }
/* Complete frame has been reassembled - process it now */
rx->fragmented = 1;