From b3cb06e98a748e85b31723edcaae470349e9e432 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 11 Jun 2026 18:17:07 -0500 Subject: [PATCH] fix F-1426: PTR_ERR on malloc Results Always Yields 0 in AES-GCM Self-Test Error Messages --- linuxkm/lkcapi_aes_glue.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/linuxkm/lkcapi_aes_glue.c b/linuxkm/lkcapi_aes_glue.c index dd79f83a65..59547eed5b 100644 --- a/linuxkm/lkcapi_aes_glue.c +++ b/linuxkm/lkcapi_aes_glue.c @@ -3616,16 +3616,14 @@ static int linuxkm_test_aesgcm(void) src = malloc(sizeof(struct scatterlist) * 2); if (! src) { - pr_err("error: malloc src failed: %ld\n", - PTR_ERR(src)); + pr_err("error: malloc src failed,\n"); goto test_gcm_end; } dst = malloc(sizeof(struct scatterlist) * 2); if (! dst) { - pr_err("error: malloc dst failed: %ld\n", - PTR_ERR(dst)); + pr_err("error: malloc dst failed.\n"); goto test_gcm_end; }