From 546ac0ac3643fbd4747f545e3917be58b05f7dce Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 11 Jun 2026 10:20:10 -0500 Subject: [PATCH] linuxkm/lkcapi_aes_glue.c: clean up pr_err()s on allocation failures. --- linuxkm/lkcapi_aes_glue.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/linuxkm/lkcapi_aes_glue.c b/linuxkm/lkcapi_aes_glue.c index a338487acb..dd79f83a65 100644 --- a/linuxkm/lkcapi_aes_glue.c +++ b/linuxkm/lkcapi_aes_glue.c @@ -3140,7 +3140,7 @@ static int linuxkm_test_aescbc(void) req = skcipher_request_alloc(tfm, GFP_KERNEL); if (! req) { ret = -ENOMEM; - pr_err("error: allocating AES skcipher request %s failed\n", + pr_err("error: allocating AES skcipher request %s failed.\n", WOLFKM_AESCBC_DRIVER); goto test_cbc_end; } @@ -3342,7 +3342,7 @@ static int linuxkm_test_aescfb(void) req = skcipher_request_alloc(tfm, GFP_KERNEL); if (! req) { ret = -ENOMEM; - pr_err("error: allocating AES skcipher request %s failed\n", + pr_err("error: allocating AES skcipher request %s failed.\n", WOLFKM_AESCFB_DRIVER); goto test_cfb_end; } @@ -3608,8 +3608,8 @@ static int linuxkm_test_aesgcm(void) req = aead_request_alloc(tfm, GFP_KERNEL); if (! req) { ret = -ENOMEM; - pr_err("error: allocating AES aead request %s failed: %ld\n", - WOLFKM_AESCBC_DRIVER, PTR_ERR(req)); + pr_err("error: allocating AES aead request %s failed.\n", + WOLFKM_AESCBC_DRIVER); goto test_gcm_end; } @@ -4705,8 +4705,8 @@ static int aes_xts_256_test(void) req = skcipher_request_alloc(tfm, GFP_KERNEL); if (! req) { ret = -ENOMEM; - pr_err("error: allocating AES skcipher request %s failed: %d\n", - WOLFKM_AESXTS_DRIVER, ret); + pr_err("error: allocating AES skcipher request %s failed.\n", + WOLFKM_AESXTS_DRIVER); goto test_xts_end; }