* [PATCH] s390: PTR_ERR return of wrong pointer in fallback_init_cip()
@ 2009-12-07 13:31 Roel Kluin
2009-12-07 14:03 ` Martin Schwidefsky
0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2009-12-07 13:31 UTC (permalink / raw)
To: Martin Schwidefsky, Heiko Carstens, linux390, linux-s390,
Andrew Morton, LKML
Return the PTR_ERR of the correct pointer.
Signed-off-by: Roel Kluin <roel.kluin@gmail.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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] s390: PTR_ERR return of wrong pointer in fallback_init_cip()
2009-12-07 13:31 [PATCH] s390: PTR_ERR return of wrong pointer in fallback_init_cip() Roel Kluin
@ 2009-12-07 14:03 ` Martin Schwidefsky
0 siblings, 0 replies; 2+ messages in thread
From: Martin Schwidefsky @ 2009-12-07 14:03 UTC (permalink / raw)
To: Roel Kluin; +Cc: Heiko Carstens, linux390, linux-s390, Andrew Morton, LKML
On Mon, 07 Dec 2009 14:31:05 +0100
Roel Kluin <roel.kluin@gmail.com> wrote:
> Return the PTR_ERR of the correct pointer.
>
> Signed-off-by: Roel Kluin <roel.kluin@gmail.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;
Added to my queue, thanks.
--
blue skies,
Martin.
"Reality continues to ruin my life." - Calvin.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-07 14:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 13:31 [PATCH] s390: PTR_ERR return of wrong pointer in fallback_init_cip() Roel Kluin
2009-12-07 14:03 ` Martin Schwidefsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox