]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
slub: Add check for kfree() of non slab objects.
authorChristoph Lameter <clameter@sgi.com>
Wed, 28 May 2008 17:32:22 +0000 (10:32 -0700)
committerPekka Enberg <penberg@cs.helsinki.fi>
Tue, 15 Jul 2008 17:36:01 +0000 (20:36 +0300)
commit0937502af7c9b648ed4e884ccb7f504b01a005a1
tree25ed40b554b3c5e5e8a34351b38ccffe336a1b40
parent4d3702b62e004172f44870763cf56793d8de0cbf
slub: Add check for kfree() of non slab objects.

We can detect kfree()s on non slab objects by checking for PageCompound().
Works in the same way as for ksize. This helped me catch an invalid
kfree().

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c