kmemtrace: trace kfree() calls with NULL or zero-length objects
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 25 Mar 2009 09:05:57 +0000 (11:05 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 3 Apr 2009 10:23:10 +0000 (12:23 +0200)
commit2121db74ba0fd2259f0e2265511684fadda9ac49
tree823401f3bce7018535ceea69103a28accd5794f7
parentc826e3cd0c931d60d548f2468122da570d145556
kmemtrace: trace kfree() calls with NULL or zero-length objects

Impact: also output kfree(NULL) entries

This patch moves the trace_kfree() calls before the ZERO_OR_NULL_PTR
check so that we can trace call-sites that call kfree() with NULL many
times which might be an indication of a bug.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
LKML-Reference: <1237971957.30175.18.camel@penberg-laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
mm/slab.c
mm/slob.c
mm/slub.c