Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156411
b: refs/heads/master
c: 6f9fdeb
h: refs/heads/master
i:
  156409: 02ab623
  156407: 0595ae6
v: v3
  • Loading branch information
Ralf Baechle committed Aug 3, 2009
1 parent 02829c6 commit b2ee60f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 39b3d44624e9c54e7406274beaf569fe33af2b96
refs/heads/master: 6f9fdeb6761a46ded6bf4b799993a3f235ab853d
8 changes: 5 additions & 3 deletions trunk/arch/mips/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ static int apply_r_mips_32_rela(struct module *me, u32 *location, Elf_Addr v)
static int apply_r_mips_26_rel(struct module *me, u32 *location, Elf_Addr v)
{
if (v % 4) {
printk(KERN_ERR "module %s: dangerous relocation\n", me->name);
pr_err("module %s: dangerous R_MIPS_26 REL relocation\n",
me->name);
return -ENOEXEC;
}

Expand All @@ -118,7 +119,8 @@ static int apply_r_mips_26_rel(struct module *me, u32 *location, Elf_Addr v)
static int apply_r_mips_26_rela(struct module *me, u32 *location, Elf_Addr v)
{
if (v % 4) {
printk(KERN_ERR "module %s: dangerous relocation\n", me->name);
pr_err("module %s: dangerous R_MIPS_26 RELArelocation\n",
me->name);
return -ENOEXEC;
}

Expand Down Expand Up @@ -222,7 +224,7 @@ static int apply_r_mips_lo16_rel(struct module *me, u32 *location, Elf_Addr v)
return 0;

out_danger:
printk(KERN_ERR "module %s: dangerous " "relocation\n", me->name);
pr_err("module %s: dangerous R_MIPS_LO16 REL relocation\n", me->name);

return -ENOEXEC;
}
Expand Down

0 comments on commit b2ee60f

Please sign in to comment.