linuxkm/lkcapi_aes_glue.c: clean up pr_err()s on allocation failures.

This commit is contained in:
Daniel Pouzzner
2026-06-11 10:20:10 -05:00
parent 86ba8f7770
commit 546ac0ac36
+6 -6
View File
@@ -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;
}