Commit:     898552c9d807fe59f3ecaf9c300c109358375c12
Parent:     0c12b51712ced2c0d89a8ec3d546ed810f86d33e
Author:     Ingo Molnar <[EMAIL PROTECTED]>
AuthorDate: Sat Feb 10 01:44:57 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sun Feb 11 10:51:26 2007 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 mm/slab.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/mm/slab.c b/mm/slab.c
index 348396d..196df70 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -3751,6 +3751,7 @@ void kmem_cache_free(struct kmem_cache *cachep, void 
        BUG_ON(virt_to_cache(objp) != cachep);
+       debug_check_no_locks_freed(objp, obj_size(cachep));
        __cache_free(cachep, objp);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to