aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c
index f5e9491ef7ac..e6daf9a320a7 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -1780,7 +1780,7 @@ static struct module *load_module(void __user *umod,
1780 1780
1781 /* Sanity checks against insmoding binaries or wrong arch, 1781 /* Sanity checks against insmoding binaries or wrong arch,
1782 weird elf version */ 1782 weird elf version */
1783 if (memcmp(hdr->e_ident, ELFMAG, 4) != 0 1783 if (memcmp(hdr->e_ident, ELFMAG, SELFMAG) != 0
1784 || hdr->e_type != ET_REL 1784 || hdr->e_type != ET_REL
1785 || !elf_check_arch(hdr) 1785 || !elf_check_arch(hdr)
1786 || hdr->e_shentsize != sizeof(*sechdrs)) { 1786 || hdr->e_shentsize != sizeof(*sechdrs)) {