diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-02-10 04:44:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:26 -0500 |
commit | 898552c9d807fe59f3ecaf9c300c109358375c12 (patch) | |
tree | 74b49d1c49a18518f298bc25fc0bb686bd2b2a64 /mm | |
parent | 0c12b51712ced2c0d89a8ec3d546ed810f86d33e (diff) |
[PATCH] lockdep: also check for freed locks in kmem_cache_free()
kmem_cache_free() was missing the check for freeing held locks.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slab.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3751,6 +3751,7 @@ void kmem_cache_free(struct kmem_cache *cachep, void *objp) | |||
3751 | BUG_ON(virt_to_cache(objp) != cachep); | 3751 | BUG_ON(virt_to_cache(objp) != cachep); |
3752 | 3752 | ||
3753 | local_irq_save(flags); | 3753 | local_irq_save(flags); |
3754 | debug_check_no_locks_freed(objp, obj_size(cachep)); | ||
3754 | __cache_free(cachep, objp); | 3755 | __cache_free(cachep, objp); |
3755 | local_irq_restore(flags); | 3756 | local_irq_restore(flags); |
3756 | } | 3757 | } |