aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/crypto_user.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/crypto_user.c b/crypto/crypto_user.c
index 5a37eadb4e56..ba2c611154af 100644
--- a/crypto/crypto_user.c
+++ b/crypto/crypto_user.c
@@ -496,9 +496,12 @@ static void crypto_netlink_rcv(struct sk_buff *skb)
496 496
497static int __init crypto_user_init(void) 497static int __init crypto_user_init(void)
498{ 498{
499 struct netlink_kernel_cfg cfg = {
500 .input = crypto_netlink_rcv,
501 };
502
499 crypto_nlsk = netlink_kernel_create(&init_net, NETLINK_CRYPTO, 503 crypto_nlsk = netlink_kernel_create(&init_net, NETLINK_CRYPTO,
500 0, crypto_netlink_rcv, 504 THIS_MODULE, &cfg);
501 NULL, THIS_MODULE);
502 if (!crypto_nlsk) 505 if (!crypto_nlsk)
503 return -ENOMEM; 506 return -ENOMEM;
504 507