Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca34fb1a authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[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: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f2183125
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;