linux/net
Gerrit Renker d14a0ebda7 net-2.6 [Bug-Fix][dccp]: fix oops caused after failed initialisation
dccp: fix panic caused by failed initialisation

This fixes a kernel panic reported thanks to Andre Noll:

if DCCP is compiled into the kernel and any out of the initialisation
steps in net/dccp/proto.c:dccp_init() fail, a subsequent attempt to create
a SOCK_DCCP socket will panic, since inet{,6}_create() are not prevented
from creating DCCP sockets.

This patch fixes the problem by propagating a failure in dccp_init() to
dccp_v{4,6}_init_net(), and from there to dccp_v{4,6}_init(), so that the
DCCP protocol is not made available if its initialisation fails.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-03-15 16:00:50 -07:00
..
9p
802
8021q
appletalk
atm
ax25
bluetooth
bridge bridge: ensure to unlock in error path in br_multicast_query(). 2010-03-13 12:27:21 -08:00
can
core net: Fix dev_mc_add() 2010-03-10 07:32:28 -08:00
dcb
dccp net-2.6 [Bug-Fix][dccp]: fix oops caused after failed initialisation 2010-03-15 16:00:50 -07:00
decnet
dsa
econet
ethernet
ieee802154
ipv4 ipconfig: Handle devices which take some time to come up. 2010-03-12 00:00:17 -08:00
ipv6 ipv6: Send netlink notification when DAD fails 2010-03-13 12:23:29 -08:00
ipx
irda
iucv
key
lapb
llc
mac80211 mac80211: Fix memory leak in ieee80211_if_write() 2010-03-10 16:29:11 -05:00
netfilter
netlabel
netlink
netrom
packet
phonet phonet: use for_each_set_bit() 2010-03-15 16:00:47 -07:00
rds
rfkill
rose
rxrpc
sched
sctp
sunrpc net/sunrpc: Convert (void)snprintf to snprintf 2010-03-08 12:15:59 -08:00
tipc tipc: filter out messages not intended for this host 2010-03-08 12:43:56 -08:00
unix
wanrouter
wimax
wireless
x25
xfrm
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c
TUNABLE