mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Acked-by: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
01e457cfcd
commit
b8c1c5da15
1 changed files with 1 additions and 1 deletions
|
|
@ -2776,7 +2776,7 @@ static int cache_grow(struct kmem_cache *cachep,
|
|||
* 'nodeid'.
|
||||
*/
|
||||
if (!objp)
|
||||
objp = kmem_getpages(cachep, flags, nodeid);
|
||||
objp = kmem_getpages(cachep, local_flags, nodeid);
|
||||
if (!objp)
|
||||
goto failed;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue