summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/branch.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2007-07-13 23:02:42 +0900
committerRalf Baechle <ralf@linux-mips.org>2007-07-13 17:40:01 +0100
commit5e0373b8e449b0c72495a6d8401c53f678b71988 (patch)
treea78f743ba84a62fcde92c9aff614aed69c382cc6 /arch/mips/kernel/branch.c
parente70dfc10b99ebffa1f464b1b9290df2589284f70 (diff)
downloadblackbird-op-linux-5e0373b8e449b0c72495a6d8401c53f678b71988.tar.gz
blackbird-op-linux-5e0373b8e449b0c72495a6d8401c53f678b71988.zip
[MIPS] Add some __user tags
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/branch.c')
-rw-r--r--arch/mips/kernel/branch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/kernel/branch.c b/arch/mips/kernel/branch.c
index 76fd3f22c766..6b5df8bfab85 100644
--- a/arch/mips/kernel/branch.c
+++ b/arch/mips/kernel/branch.c
@@ -22,7 +22,8 @@
*/
int __compute_return_epc(struct pt_regs *regs)
{
- unsigned int *addr, bit, fcr31, dspcontrol;
+ unsigned int __user *addr;
+ unsigned int bit, fcr31, dspcontrol;
long epc;
union mips_instruction insn;
@@ -33,7 +34,7 @@ int __compute_return_epc(struct pt_regs *regs)
/*
* Read the instruction
*/
- addr = (unsigned int *) epc;
+ addr = (unsigned int __user *) epc;
if (__get_user(insn.word, addr)) {
force_sig(SIGSEGV, current);
return -EFAULT;
OpenPOWER on IntegriCloud