crypto: mv_cesa - dont return PTR_ERR() of wrong pointer
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 4 Jan 2011 04:37:16 +0000 (15:37 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 4 Jan 2011 12:34:06 +0000 (23:34 +1100)
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>
drivers/crypto/mv_cesa.c

index 7d279e5..c99305a 100644 (file)
@@ -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;
                }
        }