projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f88ad8d
)
crypto: shash - Propagate reinit return value
author
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 8 Jul 2009 15:39:01 +0000
(23:39 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 8 Jul 2009 15:39:01 +0000
(23:39 +0800)
This patch fixes crypto_shash_import to propagate the value returned
by reinit.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/shash.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/shash.c
b/crypto/shash.c
index 783231090005ab489e0585c9882d74839923f5ed..23e05a1e9038779d9d517e6ca292ae7083352a73 100644
(file)
--- a/
crypto/shash.c
+++ b/
crypto/shash.c
@@
-180,7
+180,7
@@
int crypto_shash_import(struct shash_desc *desc, const u8 *in)
memcpy(shash_desc_ctx(desc), in, crypto_shash_descsize(tfm));
if (alg->reinit)
- alg->reinit(desc);
+
return
alg->reinit(desc);
return 0;
}