commit | deee2289b932d512035f579b8f8e178796564ba1 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Wed Jul 08 23:39:01 2009 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Jul 08 23:39:01 2009 +0800 |
tree | 6669d02405d8297df9f09f2ecb471c5f2562b023 | |
parent | f88ad8de282a9c4afd79fb0b4b536025f24a2005 [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>
diff --git a/crypto/shash.c b/crypto/shash.c index 7832310..23e05a1 100644 --- a/crypto/shash.c +++ b/crypto/shash.c
@@ -180,7 +180,7 @@ memcpy(shash_desc_ctx(desc), in, crypto_shash_descsize(tfm)); if (alg->reinit) - alg->reinit(desc); + return alg->reinit(desc); return 0; }