]> Pileus Git - ~andy/linux/blobdiff - crypto/crypto_user.c
netlink: add netlink_kernel_cfg parameter to netlink_kernel_create
[~andy/linux] / crypto / crypto_user.c
index 5a37eadb4e56da5c922bab5167a295432e3cca3a..ba2c611154af5e0df373a04b22eed782da0daac5 100644 (file)
@@ -496,9 +496,12 @@ static void crypto_netlink_rcv(struct sk_buff *skb)
 
 static int __init crypto_user_init(void)
 {
+       struct netlink_kernel_cfg cfg = {
+               .input  = crypto_netlink_rcv,
+       };
+
        crypto_nlsk = netlink_kernel_create(&init_net, NETLINK_CRYPTO,
-                                           0, crypto_netlink_rcv,
-                                           NULL, THIS_MODULE);
+                                           THIS_MODULE, &cfg);
        if (!crypto_nlsk)
                return -ENOMEM;