Skip to content

Commit 4d77baf

Browse files
committed
linuxkm/module_hooks.c: fix flub in IntelRDseed64_r() ForceZero() call;
linuxkm/lkcapi_aes_glue.c: fix typo in linuxkm_test_aesgcm() error message.
1 parent 1b22e4b commit 4d77baf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

linuxkm/lkcapi_aes_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3639,7 +3639,7 @@ static int linuxkm_test_aesgcm(void)
36393639
src = malloc(sizeof(struct scatterlist) * 2);
36403640

36413641
if (! src) {
3642-
pr_err("error: malloc src failed,\n");
3642+
pr_err("error: malloc src failed.\n");
36433643
ret = MEMORY_E;
36443644
goto test_gcm_end;
36453645
}

linuxkm/module_hooks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ static WC_INLINE int IntelRDseed64_r(word64* rnd)
472472
WC_SANITIZE_ENABLE();
473473
buf = 0;
474474
}
475-
wc_ForceZero(&buf, 0, sizeof buf);
475+
wc_ForceZero(&buf, sizeof buf);
476476
return 0;
477477
}
478478

0 commit comments

Comments
 (0)