net: Pass kern from net_proto_family.create to sk_alloc
[firefly-linux-kernel-4.4.55.git] / net / caif / caif_socket.c
index 4ec0c803aef112196657503cd615fe7a83e800bb..78a04ebb113c356d634ebb921fc0e72cf5e3d082 100644 (file)
@@ -1047,7 +1047,7 @@ static int caif_create(struct net *net, struct socket *sock, int protocol,
         * is really not used at all in the net/core or socket.c but the
         * initialization makes sure that sock->state is not uninitialized.
         */
-       sk = sk_alloc(net, PF_CAIF, GFP_KERNEL, &prot);
+       sk = sk_alloc(net, PF_CAIF, GFP_KERNEL, &prot, kern);
        if (!sk)
                return -ENOMEM;