net: Pass kern from net_proto_family.create to sk_alloc
[linux-2.6-block.git] / net / ipx / af_ipx.c
index 4ea5d7497b5f29ac41a00783c48d1898aa769937..48d0dc89b58de8aae5f128145634070a77d7c281 100644 (file)
@@ -1347,7 +1347,7 @@ static int ipx_create(struct net *net, struct socket *sock, int protocol,
                goto out;
 
        rc = -ENOMEM;
-       sk = sk_alloc(net, PF_IPX, GFP_KERNEL, &ipx_proto);
+       sk = sk_alloc(net, PF_IPX, GFP_KERNEL, &ipx_proto, kern);
        if (!sk)
                goto out;