]> git.baikalelectronics.ru Git - kernel.git/commit
Slab: Fix memory leak in fallback_alloc()
authorChristoph Lameter <clameter@sgi.com>
Sat, 21 Jun 2008 23:46:35 +0000 (16:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Jun 2008 23:51:02 +0000 (16:51 -0700)
commitd825391d19845dcbfe68ea4a3d8be5c47b748431
tree3fcae626ec4e1d4e698008671cfd62d794992ac5
parent2d60d1ea2bae5d79a2406600adbe3446fa9361be
Slab: Fix memory leak in fallback_alloc()

The zonelist patches caused the loop that checks for available
objects in permitted zones to not terminate immediately. One object
per zone per allocation may be allocated and then abandoned.

Break the loop when we have successfully allocated one object.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slab.c