From: Roel Kluin Date: Fri, 18 Dec 2009 16:43:18 +0000 (+0100) Subject: [S390] s390: PTR_ERR return of wrong pointer in fallback_init_cip() X-Git-Tag: upstream/snapshot3+hdmi~16057^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b59cdcb339fc7286161b80403f6af63acf26876f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [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 Signed-off-by: Martin Schwidefsky --- 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;