Skip to contentSkip to conversation

crypto: dont return PTR_ERR() of wrong pointer

PATCH In review roel kluin 2 participants 2 messages Dec 31, 2010 – Jan 4, 2011 Crypto API

lore
Share & tools
lore

roel kluin

author
#0 lore raw

PATCH 1/1 crypto: dont return PTR_ERR() of wrong pointer

Fix a PTR_ERR() return of the wrong pointer

---
 drivers/crypto/mv_cesa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/crypto/mv_cesa.c +1 -1
index 7d279e5..c99305a 100644
@@ -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;
 		}
 	}
#1 lore raw
Quoted 3 lines · roel kluin

Fix a PTR_ERR() return of the wrong pointer

Patch applied. Thanks!

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt