Jesper Juhl
3f61cd879c
bnx2x: Fix mem leak in bnx2x_tpa_stop() if build_skb() fails.
...
We allocate memory for 'new_data' with kmalloc(). If we get the memory
we then try to build_skb() and if that should fail (which it can) we
do not enter 'if (likely(skb)) {' and actually use 'new_data' but
instead fall through to the 'drop:' label and end up returning from
the function without ever assigning 'new'data' to anything or freeing
it. That leaks the memory allocated to 'new_data'.
This patch fixes the memory leak by doing a kfree(new_data) in the
case where build_skb() fails (or where allocation of 'new_data' itself
fails, but in taht case it's just a harmless kfree(NULL)).
Signed-off-by: Jesper Juhl <[email protected] >
Acked-by: Eric Dumazet <[email protected] >
Acked-by: Eilon Greenstein <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2012-02-07 13:13:33 -05:00
..
appletalk
arcnet
bonding
bonding: fix enslaving in alb mode when link down
2012-01-18 20:59:53 -05:00
caif
module_param: make bool parameters really bool (net & drivers/net)
2011-12-19 22:27:29 -05:00
can
can: peak_pci: Fix the way channels are linked together
2012-02-03 00:26:27 +01:00
cris
dsa
drivers/net: dsa/mv88e6xxx.c files need linux/module.h
2012-01-24 15:44:50 -05:00
ethernet
bnx2x: Fix mem leak in bnx2x_tpa_stop() if build_skb() fails.
2012-02-07 13:13:33 -05:00
fddi
hamradio
hippi
hyperv
net/hyperv: Fix the page buffer when an RNDIS message goes beyond page boundary
2012-02-02 14:35:12 -05:00
irda
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
2012-01-14 13:05:21 -08:00
phy
kernel-doc: fix new warning in net/phy/mdio_bus.c
2012-01-22 15:08:45 -05:00
plip
ppp
pptp: Accept packet with seq zero
2012-01-12 20:05:28 -08:00
slip
team
team: send only changed options/ports via netlink
2012-01-24 15:51:00 -05:00
tokenring
CONFIG_TR/CONFIG_LLC: work around the problem with select
2012-02-07 13:06:14 -05:00
usb
asix: fix setting custom MAC address on Asix 88178 devices
2012-01-10 14:59:48 -08:00
vmxnet3
vmxnet3" make ethtool ops const
2012-01-05 13:23:00 -05:00
wan
module_param: make bool parameters really bool (net & drivers/net)
2011-12-19 22:27:29 -05:00
wimax
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
2012-01-08 13:21:22 -08:00
wireless
iwlwifi: don't mess up QoS counters with non-QoS frames
2012-02-01 15:26:00 -05:00
xen-netback
Merge branch 'stable/for-linus-3.3' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen
2012-01-10 10:09:59 -08:00
dummy.c
eql.c
ifb.c
Kconfig
Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
2012-01-09 12:18:17 -08:00
LICENSE.SRC
loopback.c
macvlan.c
macvlan: fix a possible use after free
2012-01-23 13:56:18 -05:00
macvtap.c
macvtap: Fix macvtap_get_queue to use rxhash first
2011-12-20 13:45:55 -05:00
Makefile
Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
2012-01-09 12:18:17 -08:00
mdio.c
mii.c
netconsole.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tun.c
veth.c
virtio_net.c
virtio: net: Add freeze, restore handlers to support S4
2012-01-12 15:44:46 +10:30
xen-netfront.c
xen-netfront: correct MAX_TX_TARGET calculation.
2012-01-26 13:48:35 -05:00