x86/kexec: fix incorrect argument passed to kexec_dprintk()
authorYuntao Wang <ytcoode@gmail.com>
Wed, 20 Dec 2023 15:41:05 +0000 (23:41 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 Dec 2023 20:22:28 +0000 (12:22 -0800)
commit22bb6bcd4c2b2f22865bdfdd7c772405ed3cbfd3
tree67dfb7365fea94bdff70efda1ef628374db4baf2
parent43132282d8efc3fe8a90ecd97a715559ed510b5d
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>
arch/x86/kernel/kexec-bzimage64.c