projects/linux·commit ed4fc720

Merge branch 'futexes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

ed4fc720 · Linus Torvalds <[email protected]> · 2009-06-25 11:25:00 -07:00

* '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()
Commit
ed4fc720e1912eb36ca654d03c88c48845ed39b2
Parents
f4fa4468 · aa715284

Merge commit. Changes below are compared with the first parent: f4fa4468.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
kernel/futex.cmodified+1−1View file

kernel/futex.c

View file
diff --git a/kernel/futex.c b/kernel/futex.c
index 1c33711..794c862 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -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;
}