[S390] s390: PTR_ERR return of wrong pointer in fallback_init_cip()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Saturday, December 19, 2009 - 10:59 am

Gitweb:     http://git.kernel.org/linus/b59cdcb339fc7286161b80403f6af63acf26876f
Commit:     b59cdcb339fc7286161b80403f6af63acf26876f
Parent:     6d53cfe590c17c28ebae2c869bb7a5ab9554b4da
Author:     Roel Kluin <roel.kluin@gmail.com>
AuthorDate: Fri Dec 18 17:43:18 2009 +0100
Committer:  Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
CommitDate: Fri Dec 18 17:43:31 2009 +0100

    [S390] s390: PTR_ERR return of wrong pointer in fallback_init_cip()
    
    Return the PTR_ERR of the correct pointer.
    
    Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
    Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
---
 arch/s390/crypto/aes_s390.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/s390/crypto/aes_s390.c b/arch/s390/crypto/aes_s390.c
index 6118890..6be4503 100644
--- a/arch/s390/crypto/aes_s390.c
+++ b/arch/s390/crypto/aes_s390.c
@@ -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;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[S390] s390: PTR_ERR return of wrong pointer in fallback_i ..., Linux Kernel Mailing ..., (Sat Dec 19, 10:59 am)