X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=crypto%2Fcrypto_user.c;h=f76e42bcc6e7f4c213eef714761ee34630fbc483;hb=30d73f375238441d6dc31de0d90bc39f5bb0bfe5;hp=16f8693cc147ff9d8c864cc769b6632d8d105e45;hpb=972c5ae961d6e5103e2b33d935cfa4145fd47140;p=karo-tx-linux.git diff --git a/crypto/crypto_user.c b/crypto/crypto_user.c index 16f8693cc147..f76e42bcc6e7 100644 --- a/crypto/crypto_user.c +++ b/crypto/crypto_user.c @@ -304,7 +304,7 @@ static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh, static int crypto_add_alg(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) { - int exact; + int exact = 0; const char *name; struct crypto_alg *alg; struct crypto_user_alg *p = nlmsg_data(nlh); @@ -389,9 +389,13 @@ static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) (nlh->nlmsg_flags & NLM_F_DUMP))) { if (link->dump == NULL) return -EINVAL; - - return netlink_dump_start(crypto_nlsk, skb, nlh, - link->dump, link->done, 0); + { + struct netlink_dump_control c = { + .dump = link->dump, + .done = link->done, + }; + return netlink_dump_start(crypto_nlsk, skb, nlh, &c); + } } err = nlmsg_parse(nlh, crypto_msg_min[type], attrs, CRYPTOCFGA_MAX,