X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fproc%2Fvmcore.c;h=9ac0f5e064e09e99f58b428e933b2903a893a5b9;hb=1f1519ef597ae4628dbd47244f0f68d700231523;hp=20d4b2237fcefd482112a3752669fe87004884bf;hpb=875999c5539999f61a45620aae0c3e5fb1d2b035;p=linux-2.6 diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index 20d4b2237f..9ac0f5e064 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c @@ -7,11 +7,9 @@ * */ -#include #include #include #include -#include #include #include #include @@ -515,7 +513,7 @@ static int __init parse_crash_elf64_headers(void) /* Do some basic Verification. */ if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0 || (ehdr.e_type != ET_CORE) || - !elf_check_arch(&ehdr) || + !vmcore_elf_check_arch(&ehdr) || ehdr.e_ident[EI_CLASS] != ELFCLASS64 || ehdr.e_ident[EI_VERSION] != EV_CURRENT || ehdr.e_version != EV_CURRENT ||