2012-06-17 19:52:06 +00:00
|
|
|
From 6628ee8ecd1c2c1b2b8b78106f01092f2dfea815 Mon Sep 17 00:00:00 2001
|
2011-11-20 00:01:55 +00:00
|
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
Date: Mon, 20 Jun 2011 10:42:04 +0200
|
2012-06-17 19:52:06 +00:00
|
|
|
Subject: [044/254] mm-slab-move-debug-out.patch
|
2011-11-20 00:01:55 +00:00
|
|
|
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
---
|
|
|
|
mm/slab.c | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
2012-06-17 19:52:06 +00:00
|
|
|
diff --git a/mm/slab.c b/mm/slab.c
|
|
|
|
index 1fd4b4d..80c57f9 100644
|
|
|
|
--- a/mm/slab.c
|
|
|
|
+++ b/mm/slab.c
|
|
|
|
@@ -3919,10 +3919,10 @@ void kmem_cache_free(struct kmem_cache *cachep, void *objp)
|
2011-11-20 00:01:55 +00:00
|
|
|
{
|
|
|
|
unsigned long flags;
|
|
|
|
|
|
|
|
- local_irq_save(flags);
|
|
|
|
debug_check_no_locks_freed(objp, obj_size(cachep));
|
|
|
|
if (!(cachep->flags & SLAB_DEBUG_OBJECTS))
|
|
|
|
debug_check_no_obj_freed(objp, obj_size(cachep));
|
|
|
|
+ local_irq_save(flags);
|
|
|
|
__cache_free(cachep, objp, __builtin_return_address(0));
|
|
|
|
local_irq_restore(flags);
|
|
|
|
|
2012-06-04 21:20:09 +00:00
|
|
|
@@ -3948,11 +3948,11 @@ void kfree(const void *objp)
|
2011-11-20 00:01:55 +00:00
|
|
|
|
|
|
|
if (unlikely(ZERO_OR_NULL_PTR(objp)))
|
|
|
|
return;
|
|
|
|
- local_irq_save(flags);
|
|
|
|
kfree_debugcheck(objp);
|
|
|
|
c = virt_to_cache(objp);
|
|
|
|
debug_check_no_locks_freed(objp, obj_size(c));
|
|
|
|
debug_check_no_obj_freed(objp, obj_size(c));
|
|
|
|
+ local_irq_save(flags);
|
|
|
|
__cache_free(c, (void *)objp, __builtin_return_address(0));
|
|
|
|
local_irq_restore(flags);
|
|
|
|
}
|