mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
[PATCH] mac80211: fix memory leak when defrag fragments
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>
This commit is contained in:
parent
f11b0f0eb2
commit
e8fdeca241
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue