Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e8fdeca241e17dcc5b8f2465be8e1a6347c62fb9
Commit:     e8fdeca241e17dcc5b8f2465be8e1a6347c62fb9
Parent:     f11b0f0eb2ea7562db63a01c60d398ec52d5ea46
Author:     Hong Liu <[EMAIL PROTECTED]>
AuthorDate: Thu May 17 11:13:44 2007 +0800
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Tue May 29 10:34:05 2007 -0400

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 net/mac80211/ieee80211.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c
index 6e36df6..145604a 100644
--- 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to