Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit fd2efd93 authored by Herbert Xu's avatar Herbert Xu
Browse files

Revert "crypto: user - no parsing of CRYPTO_MSG_GETALG"

This patch commit eed1e1af as
it is only a workaround for the real bug and the proper fix has
now been applied as 055ddaac


("crypto: user - re-add size check for CRYPTO_MSG_GETALG").

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 01ac9458
No related merge requests found
......@@ -516,12 +516,10 @@ static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
return err;
}
if (type != (CRYPTO_MSG_GETALG - CRYPTO_MSG_BASE)) {
err = nlmsg_parse(nlh, crypto_msg_min[type], attrs,
CRYPTOCFGA_MAX, crypto_policy);
if (err < 0)
return err;
}
err = nlmsg_parse(nlh, crypto_msg_min[type], attrs, CRYPTOCFGA_MAX,
crypto_policy);
if (err < 0)
return err;
if (link->doit == NULL)
return -EINVAL;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment