* [PATCH] crypto: dont return PTR_ERR() of wrong pointer
@ 2010-12-31 15:21 roel kluin
2011-01-04 4:37 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: roel kluin @ 2010-12-31 15:21 UTC (permalink / raw)
To: Herbert Xu, David S. Miller, linux-crypto, Andrew Morton, LKML
Fix a PTR_ERR() return of the wrong pointer
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
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 7d279e5..c99305a 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;
}
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-04 4:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-31 15:21 [PATCH] crypto: dont return PTR_ERR() of wrong pointer roel kluin
2011-01-04 4:37 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox