diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-06-27 05:54:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-27 20:32:46 -0400 |
commit | f9b8404cf8f8456dfa83459510762b700dc00385 (patch) | |
tree | f74b54c79ee3913d587644195d8af7ba13b6cc2a /mm/slab.c | |
parent | 6abdce7680e3e8436b3292b345d77b67d5ec9ea8 (diff) |
[PATCH] pi-futex: introduce debug_check_no_locks_freed()
Add debug_check_no_locks_freed(), as a central inline to add
bad-lock-free-debugging functionality to.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3397,7 +3397,7 @@ void kfree(const void *objp) | |||
3397 | local_irq_save(flags); | 3397 | local_irq_save(flags); |
3398 | kfree_debugcheck(objp); | 3398 | kfree_debugcheck(objp); |
3399 | c = virt_to_cache(objp); | 3399 | c = virt_to_cache(objp); |
3400 | mutex_debug_check_no_locks_freed(objp, obj_size(c)); | 3400 | debug_check_no_locks_freed(objp, obj_size(c)); |
3401 | __cache_free(c, (void *)objp); | 3401 | __cache_free(c, (void *)objp); |
3402 | local_irq_restore(flags); | 3402 | local_irq_restore(flags); |
3403 | } | 3403 | } |