linux/net
Tushar Gohad 8fcbc63701 XFRM: Fix memory leak in xfrm_state_update
Upon "ip xfrm state update ..", xfrm_add_sa() takes an extra reference on
the user-supplied SA and forgets to drop the reference when
xfrm_state_update() returns 0.  This leads to a memory leak as the
parameter SA is never freed.  This change attempts to fix the leak by
calling __xfrm_state_put() when xfrm_state_update() updates a valid SA
(err = 0).  The parameter SA is added to the gc list when the final
reference is dropped by xfrm_add_sa() upon completion.

Signed-off-by: Tushar Gohad <tgohad@mvista.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-07-08 08:58:42 -07:00
..
9p
802
8021q net: vlan: enable soft features regardless of underlying device 2011-07-05 20:43:12 -07:00
appletalk
atm
ax25
batman-adv
bluetooth
bridge bridge: Always flood broadcast packets 2011-07-05 18:39:39 -07:00
caif
can
ceph
core ipv6: Don't put artificial limit on routing table size. 2011-07-01 17:30:43 -07:00
dcb
dccp
decnet
dns_resolver
dsa
econet
ethernet
ieee802154
ipv4 net: refine {udp|tcp|sctp}_mem limits 2011-07-07 00:27:05 -07:00
ipv6 net: bind() fix error return on wrong address family 2011-07-04 21:37:41 -07:00
ipx
irda
iucv
key
l2tp
lapb
llc
mac80211
netfilter
netlabel
netlink
netrom
packet
phonet
rds
rfkill
rose
rxrpc
sched
sctp sctp: Enforce retransmission limit during shutdown 2011-07-07 14:08:44 -07:00
sunrpc
tipc
unix
wanrouter
wimax
wireless
x25
xfrm XFRM: Fix memory leak in xfrm_state_update 2011-07-08 08:58:42 -07:00
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c
TUNABLE