Skip to content

Commit

Permalink
Merge branch 'core-fixes-for-linus-2' of git://git.kernel.org/pub/scm…
Browse files Browse the repository at this point in the history
…/linux/kernel/git/tip/linux-2.6-tip

* 'core-fixes-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  futexes: Fix infinite loop in get_futex_key() on huge page
  • Loading branch information
Linus Torvalds committed Jul 15, 2009
2 parents c0c50b5 + ce2ae53 commit 989fa94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/futex.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ get_futex_key(u32 __user *uaddr, int fshared, union futex_key *key, int rw)
if (err < 0)
return err;

page = compound_head(page);
lock_page(page);
if (!page->mapping) {
unlock_page(page);
Expand Down

0 comments on commit 989fa94

Please sign in to comment.