[MIPS] Add some __user tags
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
e70dfc10b9
commit
5e0373b8e4
@@ -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;
|
||||
|
Reference in New Issue
Block a user