mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
[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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue