aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/shash.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-07-08 11:39:01 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2009-07-08 11:39:01 -0400
commitdeee2289b932d512035f579b8f8e178796564ba1 (patch)
tree6669d02405d8297df9f09f2ecb471c5f2562b023 /crypto/shash.c
parentf88ad8de282a9c4afd79fb0b4b536025f24a2005 (diff)
crypto: shash - Propagate reinit return value
This patch fixes crypto_shash_import to propagate the value returned by reinit. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/shash.c')
-rw-r--r--crypto/shash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/shash.c b/crypto/shash.c
index 783231090005..23e05a1e9038 100644
--- a/crypto/shash.c
+++ b/crypto/shash.c
@@ -180,7 +180,7 @@ int crypto_shash_import(struct shash_desc *desc, const u8 *in)
180 memcpy(shash_desc_ctx(desc), in, crypto_shash_descsize(tfm)); 180 memcpy(shash_desc_ctx(desc), in, crypto_shash_descsize(tfm));
181 181
182 if (alg->reinit) 182 if (alg->reinit)
183 alg->reinit(desc); 183 return alg->reinit(desc);
184 184
185 return 0; 185 return 0;
186} 186}