X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=net%2Fdccp%2Fipv4.c;h=52ffa1cde15a07f597470a15d7fd5ad25bd1e695;hb=cb4361c1dc29cd870f664c004b1817106fbce0fa;hp=b195c4feaa0ae3390fefad4d06e50d43f08acf83;hpb=a2e28fc1164e56d37a56e3c53bd3e5a64462fd02;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index b195c4f..52ffa1c 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c @@ -12,6 +12,7 @@ #include #include +#include #include #include #include @@ -998,11 +999,11 @@ static struct inet_protosw dccp_v4_protosw = { static int __net_init dccp_v4_init_net(struct net *net) { - int err; + if (dccp_hashinfo.bhash == NULL) + return -ESOCKTNOSUPPORT; - err = inet_ctl_sock_create(&net->dccp.v4_ctl_sk, PF_INET, - SOCK_DCCP, IPPROTO_DCCP, net); - return err; + return inet_ctl_sock_create(&net->dccp.v4_ctl_sk, PF_INET, + SOCK_DCCP, IPPROTO_DCCP, net); } static void __net_exit dccp_v4_exit_net(struct net *net)