Skip to contentSkip to conversation

s390: PTR_ERR return of wrong pointer in fallback_init_cip()

PATCH In review Roel Kluin 2 participants 2 messages Dec 7, 2009

Subsystems (3)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 s390: PTR_ERR return of wrong pointer in fallback_init_cip()

Return the PTR_ERR of the correct pointer.

---
 arch/s390/crypto/aes_s390.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/s390/crypto/aes_s390.c +1 -1
index 6118890..6be4503 100644
@@ -174,7 +174,7 @@ static int fallback_init_cip(struct crypto_tfm *tfm)
 	if (IS_ERR(sctx->fallback.cip)) {
 		pr_err("Allocating AES fallback algorithm %s failed\n",
 		       name);
-		return PTR_ERR(sctx->fallback.blk);
+		return PTR_ERR(sctx->fallback.cip);
 	}
 
 	return 0;
#1 lore raw
Quoted 12 lines · On Mon, 07 Dec 2009 14:31:05 +0100 Roel Kluin <[email protected]> wrote:

Return the PTR_ERR of the correct pointer.

---
 arch/s390/crypto/aes_s390.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/s390/crypto/aes_s390.c +0 -0
index 6118890..6be4503 100644

arch/s390/crypto/aes_s390.c static int fallback_init_cip(struct crypto_tfm *tfm) · line 180

Quoted 8 lines
arch/s390/crypto/aes_s390.c +1 -1
@@ -174,7 +174,7 @@ static int fallback_init_cip(struct crypto_tfm *tfm)
 	if (IS_ERR(sctx->fallback.cip)) {
 		pr_err("Allocating AES fallback algorithm %s failed\n",
 		       name);
-		return PTR_ERR(sctx->fallback.blk);
+		return PTR_ERR(sctx->fallback.cip);
 	}
 
 	return 0;

Added to my queue, thanks.

Signature · 4 lines
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.