diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2011-01-04 15:37:16 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-01-04 23:34:06 +1100 |
commit | 41f2977d40798ce45f4da7a1291039ffbe9e1dbc (patch) | |
tree | b7ab84472bf20adf17f74846da6b38c3fab06fcc /drivers | |
parent | 3181c22587cfeb1fe415e55b2dd8b83c7cc33e44 (diff) | |
download | linux-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')
-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, 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; } } |