* [patch] lockdep: also check for freed locks in kmem_cache_free()
@ 2006-12-18 14:23 Ingo Molnar
0 siblings, 0 replies; only message in thread
From: Ingo Molnar @ 2006-12-18 14:23 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, Linus Torvalds
Subject: [patch] lockdep: also check for freed locks in kmem_cache_free()
From: Ingo Molnar <mingo@elte.hu>
kmem_cache_free() was missing the check for freeing held locks.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
mm/slab.c | 1 +
1 file changed, 1 insertion(+)
Index: linux/mm/slab.c
===================================================================
--- linux.orig/mm/slab.c
+++ linux/mm/slab.c
@@ -3533,6 +3533,7 @@ void kmem_cache_free(struct kmem_cache *
BUG_ON(virt_to_cache(objp) != cachep);
local_irq_save(flags);
+ debug_check_no_locks_freed(objp, obj_size(cachep));
__cache_free(cachep, objp);
local_irq_restore(flags);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-18 14:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-18 14:23 [patch] lockdep: also check for freed locks in kmem_cache_free() Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®