[PATCH] i802.11: fixed memory leak on multicasts
From: Markus Pietrek
Date: Tue Apr 24 2007 - 03:35:40 EST
Hi,
socket buffers were not always freed when receiving multicasts
Bye,
--
Markus Pietrek
Lead Software Engineer
Phone: +49-7667-908-501, Fax: +49-7667-908-200
mailto:markus.pietrek@xxxxxxxx
FS Forth-Systeme GmbH
"A Digi International Company"
Kueferstr. 8, 79206 Breisach, Germany
Tax: 07008/12000 / VAT: DE142208834 / Reg. Amtsgericht Freiburg HRB 290212
Directors: Klaus Flesch, Subramanian Krishnan, Dieter Vesper
http://www.digi.com
Index: net/ieee80211/ieee80211_rx.c
===================================================================
RCS file: /data/vcs/cvs/fsforth_products/LxNETES/linux/net/ieee80211/ieee80211_rx.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -c -r1.5 -r1.6
*** net/ieee80211/ieee80211_rx.c 13 Apr 2007 12:39:38 -0000 1.5
--- net/ieee80211/ieee80211_rx.c 23 Apr 2007 15:51:28 -0000 1.6
***************
*** 860,868 ****
break;
}
! if (is_packet_for_us)
if (!ieee80211_rx(ieee, skb, stats))
dev_kfree_skb_irq(skb);
return;
drop_free:
--- 860,871 ----
break;
}
! if (is_packet_for_us) {
if (!ieee80211_rx(ieee, skb, stats))
dev_kfree_skb_irq(skb);
+ } else
+ dev_kfree_skb_irq(skb);
+
return;
drop_free: