[PATCH] i802.11: fixed memory leak on multicasts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:[email protected]

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:

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux