summaryrefslogtreecommitdiff
path: root/drivers/crypto/mv_cesa.c
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2011-01-04 07:37:16 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2011-01-04 15:34:06 +0300
commit41f2977d40798ce45f4da7a1291039ffbe9e1dbc (patch)
treeb7ab84472bf20adf17f74846da6b38c3fab06fcc /drivers/crypto/mv_cesa.c
parent3181c22587cfeb1fe415e55b2dd8b83c7cc33e44 (diff)
downloadlinux-41f2977d40798ce45f4da7a1291039ffbe9e1dbc.tar.xz
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/mv_cesa.c')
-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 7d279e578df5..c99305afa58a 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;
}
}