]> git.baikalelectronics.ru Git - kernel.git/commit
slab: correctly handle __GFP_ZERO
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 24 Jul 2007 19:02:40 +0000 (12:02 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 24 Jul 2007 19:24:59 +0000 (12:24 -0700)
commit1f8f25fb874328b7f0c143d1d455d191fac4cb5c
treec762e6ad77297beed0978337ce2f5b0c50add739
parent87f908e7806e6eb83d5d21465acd21a5a6055b88
slab: correctly handle __GFP_ZERO

Use the correct local variable when calling into the page allocator.  Local
`flags' can have __GFP_ZERO set, which causes us to pass __GFP_ZERO into the
page allocator, possibly from illegal contexts.  The page allocator will later
do prep_zero_page()->kmap_atomic(..., KM_USER0) from irq contexts and will
then go BUG.

Cc: Mike Galbraith <efault@gmx.de>
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slab.c