diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-12-18 11:43:18 -0500 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2009-12-18 11:43:31 -0500 |
commit | b59cdcb339fc7286161b80403f6af63acf26876f (patch) | |
tree | 634b24bf68cede2d844006aa69d9428c93110746 /arch/s390/crypto | |
parent | 6d53cfe590c17c28ebae2c869bb7a5ab9554b4da (diff) |
[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>
Diffstat (limited to 'arch/s390/crypto')
-rw-r--r-- | 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 6118890c946d..6be4503201ac 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) | |||
174 | if (IS_ERR(sctx->fallback.cip)) { | 174 | if (IS_ERR(sctx->fallback.cip)) { |
175 | pr_err("Allocating AES fallback algorithm %s failed\n", | 175 | pr_err("Allocating AES fallback algorithm %s failed\n", |
176 | name); | 176 | name); |
177 | return PTR_ERR(sctx->fallback.blk); | 177 | return PTR_ERR(sctx->fallback.cip); |
178 | } | 178 | } |
179 | 179 | ||
180 | return 0; | 180 | return 0; |