aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorSonny Rao <[email protected]>2009-07-10 18:13:13 -0500
committerIngo Molnar <[email protected]>2009-07-11 12:40:44 +0200
commitce2ae53b750abfaa012ce408e93da131a5b5649b (patch)
tree7d380e51a49ad40fc08044ed8050243080280273 /drivers/mtd/lpddr/lpddr_cmds.c
parentf00caa76297a534e30c3ec85382fbc3fd0dcbc69 (diff)
futexes: Fix infinite loop in get_futex_key() on huge page
get_futex_key() can infinitely loop if it is called on a virtual address that is within a huge page but not aligned to the beginning of that page. The call to get_user_pages_fast will return the struct page for a sub-page within the huge page and the check for page->mapping will always fail. The fix is to call compound_head on the page before checking that it's mapped. Signed-off-by: Sonny Rao <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions