projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b43fb6
)
[MIPS] Always fixup unaligned accesses in kernel mode.
author
Ralf Baechle
<ralf@linux-mips.org>
Sat, 24 Feb 2007 21:04:04 +0000
(21:04 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Mon, 26 Feb 2007 23:06:06 +0000
(23:06 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/unaligned.c
patch
|
blob
|
history
diff --git
a/arch/mips/kernel/unaligned.c
b/arch/mips/kernel/unaligned.c
index 7e7d54823486f0acc367451a527a2a481925b829..24b7b053cfe916fe6a073791b4e9ddbc1765c603 100644
(file)
--- a/
arch/mips/kernel/unaligned.c
+++ b/
arch/mips/kernel/unaligned.c
@@
-515,7
+515,7
@@
asmlinkage void do_ade(struct pt_regs *regs)
goto sigbus;
pc = (unsigned int __user *) exception_epc(regs);
- if ((current->thread.mflags & MF_FIXADE) == 0)
+ if (
user_mode(regs) &&
(current->thread.mflags & MF_FIXADE) == 0)
goto sigbus;
/*