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
usb: gadget: u_uac1: NULL dereference on error path
[firefly-linux-kernel-4.4.55.git]
/
crypto
/
seqiv.c
diff --git
a/crypto/seqiv.c
b/crypto/seqiv.c
index 4c44912294178816688177e56faada3c85d6267d..f2cba4ed6f256b804c4b9f7360cffd1eb63f5b2d 100644
(file)
--- a/
crypto/seqiv.c
+++ b/
crypto/seqiv.c
@@
-305,9
+305,8
@@
static struct crypto_instance *seqiv_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
);
err = crypto_get_default_rng();
if (err)