瀏覽代碼

[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>
Roel Kluin 15 年之前
父節點
當前提交
b59cdcb339
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/s390/crypto/aes_s390.c

+ 1 - 1
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;