Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96431
b: refs/heads/master
c: d303f4a
h: refs/heads/master
i:
  96429: cb46b4b
  96427: 6da04ec
  96423: 1f410c6
  96415: 65338cf
v: v3
  • Loading branch information
Cyrill Gorcunov authored and Ralf Baechle committed May 12, 2008
1 parent 24428a5 commit b927c06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ddc0d009947bf8645fa3543f4532063a787202da
refs/heads/master: d303f4a1a09b18e9689aa896bbc23879130b1da8
4 changes: 2 additions & 2 deletions trunk/arch/mips/kernel/vpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit b927c06

Please sign in to comment.