diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-06-20 08:42:04 (GMT) |
---|---|---|
committer | Emil Medve <Emilian.Medve@Freescale.com> | 2013-04-30 08:16:57 (GMT) |
commit | 47d77c0dc2a2f46387d98120ed6ea1365a45bfe7 (patch) | |
tree | bc015ced652b1a3c92df4a1d4019f75d60c502b6 /mm | |
parent | a67c4f0854c03fa166677c2166879eeb45f8c531 (diff) | |
download | linux-fsl-qoriq-47d77c0dc2a2f46387d98120ed6ea1365a45bfe7.tar.xz |
mm-slab-move-debug-out.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slab.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3895,10 +3895,10 @@ void kmem_cache_free(struct kmem_cache *cachep, void *objp) if (!cachep) return; - local_irq_save(flags); debug_check_no_locks_freed(objp, cachep->object_size); if (!(cachep->flags & SLAB_DEBUG_OBJECTS)) debug_check_no_obj_freed(objp, cachep->object_size); + local_irq_save(flags); __cache_free(cachep, objp, _RET_IP_); local_irq_restore(flags); @@ -3924,12 +3924,12 @@ void kfree(const void *objp) 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, c->object_size); debug_check_no_obj_freed(objp, c->object_size); + local_irq_save(flags); __cache_free(c, (void *)objp, _RET_IP_); local_irq_restore(flags); } |