projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01ac945
)
Revert "crypto: user - no parsing of CRYPTO_MSG_GETALG"
author
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 23 Jun 2016 10:06:02 +0000
(18:06 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 23 Jun 2016 10:06:02 +0000
(18:06 +0800)
This patch commit
eed1e1afd8d542d9644534c1b712599b5d680007
as
it is only a workaround for the real bug and the proper fix has
now been applied as
055ddaace03580455a7b7dbea8e93d62acee61fc
("crypto: user - re-add size check for CRYPTO_MSG_GETALG").
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/crypto_user.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/crypto_user.c
b/crypto/crypto_user.c
index f71960dea882291082d3c47c051c83b9feb04784..43fe85f20d577b4f3d1bbd6576b6d752bc578531 100644
(file)
--- a/
crypto/crypto_user.c
+++ b/
crypto/crypto_user.c
@@
-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;