aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-05-14 19:27:29 -0400
committerRusty Russell <rusty@rustcorp.com.au>2008-05-22 23:09:32 -0400
commitc4ea6fcf5a192dbba54666f308bdace1c278e0c1 (patch)
tree93055c860a9ddfff8e2d056e3ad19730a81b8cb9 /kernel
parent78b58e549a3098a8c1408d0214bd25e5d5e7a3a3 (diff)
module loading ELF handling: use SELFMAG instead of numeric constant
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
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)) {