mm: add gfp mask checking for __get_free_pages()
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 22 Sep 2009 00:01:47 +0000 (17:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2009 14:17:30 +0000 (07:17 -0700)
commit945a11136ebdfa7fcce319ee6215958e84cb85f6
tree0553ecd55e5805ea147d6a0f6eae0686d5630cf5
parenta26f5320c4ee3d46a0da48fa0f3ac6a00b575793
mm: add gfp mask checking for __get_free_pages()

__get_free_pages() with __GFP_HIGHMEM is not safe because the return
address cannot represent a highmem page.  get_zeroed_page() already has
such a debug checking.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c