[PATCH] uml: __user annotation in arch_prctl
From: Al Viro <viro@zeniv.linux.org.uk> fix uml/amd64 prctl() put_user() there should go to (long __user *)addr, not &addr Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
f218312582
commit
ca34fb1a87
|
@ -45,7 +45,7 @@ static long arch_prctl_tt(int code, unsigned long addr)
|
|||
case ARCH_GET_GS:
|
||||
ret = arch_prctl(code, (unsigned long) &tmp);
|
||||
if(!ret)
|
||||
ret = put_user(tmp, &addr);
|
||||
ret = put_user(tmp, (long __user *)addr);
|
||||
break;
|
||||
default:
|
||||
ret = -EINVAL;
|
||||
|
|
Loading…
Reference in New Issue