From: Gerrit Renker Date: Sun, 14 Mar 2010 20:13:19 +0000 (+0000) Subject: net-2.6 [Bug-Fix][dccp]: fix oops caused after failed initialisation X-Git-Tag: v2.6.34-rc2~28^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d14a0ebda7d3daede1a99c01527affb9ceaa4c22;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed