aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2011-01-04 15:37:16 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2011-01-04 23:34:06 +1100
commit41f2977d40798ce45f4da7a1291039ffbe9e1dbc (patch)
treeb7ab84472bf20adf17f74846da6b38c3fab06fcc /drivers/crypto
parent3181c22587cfeb1fe415e55b2dd8b83c7cc33e44 (diff)
downloadkernel_samsung_smdk4412-41f2977d40798ce45f4da7a1291039ffbe9e1dbc.zip
kernel_samsung_smdk4412-41f2977d40798ce45f4da7a1291039ffbe9e1dbc.tar.gz
kernel_samsung_smdk4412-41f2977d40798ce45f4da7a1291039ffbe9e1dbc.tar.bz2
crypto: mv_cesa - dont return PTR_ERR() of wrong pointer
Fix a PTR_ERR() return of the wrong pointer Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/mv_cesa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c
index 7d279e5..c99305a 100644
--- a/drivers/crypto/mv_cesa.c
+++ b/drivers/crypto/mv_cesa.c
@@ -857,7 +857,7 @@ static int mv_cra_hash_init(struct crypto_tfm *tfm, const char *base_hash_name,
printk(KERN_WARNING MV_CESA
"Base driver '%s' could not be loaded!\n",
base_hash_name);
- err = PTR_ERR(fallback_tfm);
+ err = PTR_ERR(base_hash);
goto err_bad_base;
}
}