diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2011-01-03 23:37:16 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-01-04 07:34:06 -0500 |
commit | 41f2977d40798ce45f4da7a1291039ffbe9e1dbc (patch) | |
tree | b7ab84472bf20adf17f74846da6b38c3fab06fcc /drivers/crypto/mv_cesa.c | |
parent | 3181c22587cfeb1fe415e55b2dd8b83c7cc33e44 (diff) |
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.c | 2 |
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, | |||
857 | printk(KERN_WARNING MV_CESA | 857 | printk(KERN_WARNING MV_CESA |
858 | "Base driver '%s' could not be loaded!\n", | 858 | "Base driver '%s' could not be loaded!\n", |
859 | base_hash_name); | 859 | base_hash_name); |
860 | err = PTR_ERR(fallback_tfm); | 860 | err = PTR_ERR(base_hash); |
861 | goto err_bad_base; | 861 | goto err_bad_base; |
862 | } | 862 | } |
863 | } | 863 | } |