]> git.baikalelectronics.ru Git - kernel.git/commit
slab, kmemleak: pass the correct pointer to kmemleak_erase()
authorJ. R. Okajima <hooanon05@yahoo.co.jp>
Wed, 2 Dec 2009 07:55:50 +0000 (16:55 +0900)
committerPekka Enberg <penberg@cs.helsinki.fi>
Sun, 6 Dec 2009 08:24:03 +0000 (10:24 +0200)
commit29cf560fe90cd8286c0be51f29909e635598ee80
treeeb5780e7a91ccae58f7754e13627804f5f893320
parentf96ea1739b5734ec027f21ff112075ed411e6d81
slab, kmemleak: pass the correct pointer to kmemleak_erase()

In ____cache_alloc(), the variable 'ac' may be changed after
cache_alloc_refill() and the following kmemleak_erase() may get an incorrect
pointer. Update 'ac' after cache_alloc_refill() unconditionally.

See the following URL for the discussion of this patch:

 http://marc.info/?l=linux-kernel&m=125873373124187&w=2

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: J. R. Okajima <hooanon05@yahoo.co.jp>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slab.c