]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit481c5346d0981940ee63037eb53e4e37b0735c10
tree3fcae626ec4e1d4e698008671cfd62d794992ac5
parent62a8efe632be1815b544845db643f1fcd9afcfb0
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