From: Herbert Xu Date: Wed, 8 Jul 2009 15:39:01 +0000 (+0800) Subject: crypto: shash - Propagate reinit return value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=deee2289b932d512035f579b8f8e178796564ba1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git crypto: shash - Propagate reinit return value This patch fixes crypto_shash_import to propagate the value returned by reinit. Signed-off-by: Herbert Xu --- 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) memcpy(shash_desc_ctx(desc), in, crypto_shash_descsize(tfm)); if (alg->reinit) - alg->reinit(desc); + return alg->reinit(desc); return 0; }