From b927c06fa04265b725b93c67659f0a14233429a2 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 4 May 2008 17:50:02 +0100 Subject: [PATCH] --- yaml --- r: 96431 b: refs/heads/master c: d303f4a1a09b18e9689aa896bbc23879130b1da8 h: refs/heads/master i: 96429: cb46b4beb04495e2ac4cfe8194712d281b8a3a80 96427: 6da04ecad3f123e3c70ce2eba6576545d5a1e202 96423: 1f410c6234ed5ba583052b8e8708b1d3c9c9d0d1 96415: 65338cf41ef800ac11b9c0ef187b18b77c802cd6 v: v3 --- [refs] | 2 +- trunk/arch/mips/kernel/vpe.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 358cfb9813db..c35feacdd5f6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ddc0d009947bf8645fa3543f4532063a787202da +refs/heads/master: d303f4a1a09b18e9689aa896bbc23879130b1da8 diff --git a/trunk/arch/mips/kernel/vpe.c b/trunk/arch/mips/kernel/vpe.c index fa67e4006960..2794501ff302 100644 --- a/trunk/arch/mips/kernel/vpe.c +++ b/trunk/arch/mips/kernel/vpe.c @@ -845,7 +845,7 @@ static int vpe_elfload(struct vpe * v) /* Sanity checks against insmoding binaries or wrong arch, weird elf version */ - if (memcmp(hdr->e_ident, ELFMAG, 4) != 0 + if (memcmp(hdr->e_ident, ELFMAG, SELFMAG) != 0 || (hdr->e_type != ET_REL && hdr->e_type != ET_EXEC) || !elf_check_arch(hdr) || hdr->e_shentsize != sizeof(*sechdrs)) { @@ -1114,7 +1114,7 @@ static int vpe_release(struct inode *inode, struct file *filp) return -ENODEV; hdr = (Elf_Ehdr *) v->pbuffer; - if (memcmp(hdr->e_ident, ELFMAG, 4) == 0) { + if (memcmp(hdr->e_ident, ELFMAG, SELFMAG) == 0) { if (vpe_elfload(v) >= 0) { vpe_run(v); } else {