kernel-ark/net
Herbert Xu 6abaaaae6d [IPSEC]: Fix tunnel error handling in ipcomp6
The error handling in ipcomp6_tunnel_create is broken in two ways:

1) If we fail to allocate an SPI (this should never happen in practice
since there are plenty of 32-bit SPI values for us to use), we will
still go ahead and create the SA.

2) When xfrm_init_state fails, we first of all may trigger the BUG_TRAP
in __xfrm_state_destroy because we didn't set the state to DEAD.  More
importantly we end up returning the freed state as if we succeeded!

This patch fixes them both.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-03-26 17:37:54 -08:00
..
802
8021q
appletalk
atm
ax25
bluetooth [PATCH] POLLRDHUP/EPOLLRDHUP handling for half-closed devices notifications 2006-03-25 08:22:56 -08:00
bridge [BRIDGE]: Unaligned accesses in the ethernet bridge 2006-03-24 15:44:57 -08:00
core Merge branch 'audit.b3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current 2006-03-25 09:24:53 -08:00
dccp [PATCH] POLLRDHUP/EPOLLRDHUP handling for half-closed devices notifications 2006-03-25 08:22:56 -08:00
decnet
econet
ethernet
ieee80211
ipv4 [PATCH] sem2mutex: misc static one-file mutexes 2006-03-26 08:56:55 -08:00
ipv6 [IPSEC]: Fix tunnel error handling in ipcomp6 2006-03-26 17:37:54 -08:00
ipx
irda
key
lapb
llc
netfilter [NETFILTER] x_table.c: sem2mutex 2006-03-25 01:41:10 -08:00
netlink [PATCH] sem2mutex: misc static one-file mutexes 2006-03-26 08:56:55 -08:00
netrom
packet
rose
rxrpc [PATCH] fix 'defined but not used' warning in net/rxrpc/main.c::rxrpc_initialise 2006-03-25 08:22:52 -08:00
sched
sctp Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2006-03-25 08:39:20 -08:00
sunrpc [PATCH] mempool: use mempool_create_slab_pool() 2006-03-26 08:57:00 -08:00
tipc
unix [PATCH] POLLRDHUP/EPOLLRDHUP handling for half-closed devices notifications 2006-03-25 08:22:56 -08:00
wanrouter
x25
xfrm
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c
TUNABLE