mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 13:50:49 +02:00
linuxkm/lkcapi_aes_glue.c: clean up pr_err()s on allocation failures.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user