Commit deee2289 authored by Herbert Xu's avatar Herbert Xu

crypto: shash - Propagate reinit return value

This patch fixes crypto_shash_import to propagate the value returned
by reinit.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent f88ad8de
...@@ -180,7 +180,7 @@ int crypto_shash_import(struct shash_desc *desc, const u8 *in) ...@@ -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)); memcpy(shash_desc_ctx(desc), in, crypto_shash_descsize(tfm));
if (alg->reinit) if (alg->reinit)
alg->reinit(desc); return alg->reinit(desc);
return 0; return 0;
} }
......
Markdown is supported
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