public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] geode: PTR_ERR return of wrong pointer in fallback_init_cip()
@ 2009-12-07 13:28 Roel Kluin
  2009-12-07 13:40 ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 9+ messages in thread
From: Roel Kluin @ 2009-12-07 13:28 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, linux-crypto, Andrew Morton, LKML

Return the PTR_ERR of the correct pointer.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
 drivers/crypto/geode-aes.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
index 4801162..12cf864 100644
--- a/drivers/crypto/geode-aes.c
+++ b/drivers/crypto/geode-aes.c
@@ -263,7 +263,7 @@ static int fallback_init_cip(struct crypto_tfm *tfm)
 
 	if (IS_ERR(op->fallback.cip)) {
 		printk(KERN_ERR "Error allocating fallback algo %s\n", name);
-		return PTR_ERR(op->fallback.blk);
+		return PTR_ERR(op->fallback.cip);
 	}
 
 	return 0;

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-01-08  3:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 13:28 [PATCH] geode: PTR_ERR return of wrong pointer in fallback_init_cip() Roel Kluin
2009-12-07 13:40 ` Sebastian Andrzej Siewior
2009-12-07 14:14   ` Roel Kluin
2009-12-11 15:03     ` Herbert Xu
2010-01-06 18:07       ` Sebastian Andrzej Siewior
2010-01-07  0:50         ` Herbert Xu
2010-01-07 21:16           ` [PATCH 1/2] crypto/s390_aes: access .cip instead of .blk in cipher mode Sebastian Andrzej Siewior
2010-01-07 21:17           ` [PATCH 2/2] crypto/geode_aes: " Sebastian Andrzej Siewior
2010-01-08  3:19             ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox