projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
crypto: user - fix info leaks in report API
[firefly-linux-kernel-4.4.55.git]
/
crypto
/
authencesn.c
diff --git
a/crypto/authencesn.c
b/crypto/authencesn.c
index 136b68b9d8d4646e60dbe6399abf3f52c67568f0..ab53762fc309c5db55ccaab948f1862bcc7a237a 100644
(file)
--- a/
crypto/authencesn.c
+++ b/
crypto/authencesn.c
@@
-715,9
+715,8
@@
static struct crypto_instance *crypto_authenc_esn_alloc(struct rtattr **tb)
int err;
algt = crypto_get_attr_type(tb);
- err = PTR_ERR(algt);
if (IS_ERR(algt))
- return ERR_
PTR(err
);
+ return ERR_
CAST(algt
);
if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask)
return ERR_PTR(-EINVAL);