Skip to content

Commit

Permalink
Display a machine-type mismatch warning if a little-endian PPC64
Browse files Browse the repository at this point in the history
compressed kdump created by makedumpfile(8) is used as an argument
with a non-PPC64 crash utility binary.  Without the patch, the
dumpfile is accepted, and the session subsequently fails with a
message indicating that that the vmlinux and dumpfile do not match.
(anderson@redhat.com)
  • Loading branch information
Dave Anderson committed Oct 6, 2015
1 parent 4602d53 commit 7d31095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diskdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ read_dump_header(char *file)
else if (STREQ(header->utsname.machine, "ppc") &&
machine_type_mismatch(file, "PPC", NULL, 0))
goto err;
else if (STREQ(header->utsname.machine, "ppc64") &&
else if (STRNEQ(header->utsname.machine, "ppc64") &&
machine_type_mismatch(file, "PPC64", NULL, 0))
goto err;
else if (STRNEQ(header->utsname.machine, "arm") &&
Expand Down

0 comments on commit 7d31095

Please sign in to comment.