Commit 1ffdb4f5 authored by Mathieu Chouquet-Stringer's avatar Mathieu Chouquet-Stringer Committed by David S. Miller

[MODULES]: Fix endianness in modprobe.

parent b9177fbe
......@@ -267,6 +267,7 @@ parse_elf(struct elf_info *info, const char *filename)
hdr->e_shoff = TO_NATIVE(hdr->e_shoff);
hdr->e_shstrndx = TO_NATIVE(hdr->e_shstrndx);
hdr->e_shnum = TO_NATIVE(hdr->e_shnum);
hdr->e_machine = TO_NATIVE(hdr->e_machine);
sechdrs = (void *)hdr + hdr->e_shoff;
info->sechdrs = sechdrs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment