]> Git Repo - linux.git/commitdiff
x86/crash: Fix minor typo/bug in debug message
authorEric DeVolder <[email protected]>
Wed, 13 Apr 2022 16:42:30 +0000 (12:42 -0400)
committerBorislav Petkov <[email protected]>
Wed, 13 Apr 2022 17:39:54 +0000 (19:39 +0200)
The pr_debug() intends to display the memsz member, but the
parameter is actually the bufsz member (which is already
displayed). Correct this to display memsz value.

Signed-off-by: Eric DeVolder <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Baoquan He <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
arch/x86/kernel/crash.c

index e8326a8d1c5dcae7e1c893f79c9b2f23f4e78580..9730c88530fc8b4c0a6c0bfc770acd087524ea10 100644 (file)
@@ -407,7 +407,7 @@ int crash_load_segments(struct kimage *image)
        }
        image->elf_load_addr = kbuf.mem;
        pr_debug("Loaded ELF headers at 0x%lx bufsz=0x%lx memsz=0x%lx\n",
-                image->elf_load_addr, kbuf.bufsz, kbuf.bufsz);
+                image->elf_load_addr, kbuf.bufsz, kbuf.memsz);
 
        return ret;
 }
This page took 0.060601 seconds and 4 git commands to generate.