]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - crypto/crypto_user.c
netlink: add netlink_dump_control structure for netlink_dump_start()
[karo-tx-linux.git] / crypto / crypto_user.c
index 16f8693cc147ff9d8c864cc769b6632d8d105e45..b6ac1387770cbcfcda7039de619f95eb4c6f854d 100644 (file)
@@ -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,