Skip to content

Commit 22bb6bc

Browse files
ytcoodeakpm00
authored andcommitted
x86/kexec: fix incorrect argument passed to kexec_dprintk()
kexec_dprintk() expects the last argument to be kbuf.memsz, but the actual argument being passed is kbuf.bufsz. Although these two values are currently equal, it is better to pass the correct one, in case these two values become different in the future. Link: https://lkml.kernel.org/r/20231220154105.215610-1-ytcoode@gmail.com Signed-off-by: Yuntao Wang <ytcoode@gmail.com> Cc: Baoquan He <bhe@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 4313228 commit 22bb6bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kernel/kexec-bzimage64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ static void *bzImage64_load(struct kimage *image, char *kernel,
496496
goto out_free_params;
497497
bootparam_load_addr = kbuf.mem;
498498
kexec_dprintk("Loaded boot_param, command line and misc at 0x%lx bufsz=0x%lx memsz=0x%lx\n",
499-
bootparam_load_addr, kbuf.bufsz, kbuf.bufsz);
499+
bootparam_load_addr, kbuf.bufsz, kbuf.memsz);
500500

501501
/* Load kernel */
502502
kbuf.buffer = kernel + kern16_size;

0 commit comments

Comments
 (0)