forked from Minki/linux
Merge branch 'futexes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'futexes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: futex: request only one page from get_user_pages()
This commit is contained in:
commit
ed4fc720e1
@ -299,7 +299,7 @@ void put_futex_key(int fshared, union futex_key *key)
|
||||
static int fault_in_user_writeable(u32 __user *uaddr)
|
||||
{
|
||||
int ret = get_user_pages(current, current->mm, (unsigned long)uaddr,
|
||||
sizeof(*uaddr), 1, 0, NULL, NULL);
|
||||
1, 1, 0, NULL, NULL);
|
||||
return ret < 0 ? ret : 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user