]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] slab: remove broken PageSlab check from kfree_debugcheck
authorPekka Enberg <penberg@cs.helsinki.fi>
Sat, 10 Feb 2007 09:42:52 +0000 (01:42 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:16 +0000 (10:51 -0800)
commit2f6a98c03e951b24496ca53e5759357eaedcf42a
tree63212795f46640de68a75cf10cfc96d5e9e0d365
parent6f3b59eec45df0455d5e1fdd10c486dac9469af7
[PATCH] slab: remove broken PageSlab check from kfree_debugcheck

The PageSlab debug check in kfree_debugcheck() is broken for compound
pages.  It is also redundant as we already do BUG_ON for non-slab pages in
page_get_cache() and page_get_slab() which are always called before we free
any actual objects.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slab.c