aboutsummaryrefslogtreecommitdiffstats
path: root/include/video/atmel_lcdc.h
diff options
context:
space:
mode:
authorEthan Solomita <solo@google.com>2007-07-16 02:38:16 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 12:05:36 -0400
commit462e00cc7151ed91fba688594436c453c80efb5d (patch)
treebf648899ba65f9eb000e9c8163a61c1cb1be9bfe /include/video/atmel_lcdc.h
parentb71636e29823c0602d908a2a62e94c9b57a97491 (diff)
oom: stop allocating user memory if TIF_MEMDIE is set
get_user_pages() can try to allocate a nearly unlimited amount of memory on behalf of a user process, even if that process has been OOM killed. The OOM kill occurs upon return to user space via a SIGKILL, but get_user_pages() will try allocate all its memory before returning. Change get_user_pages() to check for TIF_MEMDIE, and if set then return immediately. Signed-off-by: Ethan Solomita <solo@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/video/atmel_lcdc.h')
0 files changed, 0 insertions, 0 deletions