Message ID | 20120702122858.029946db@feng-i7 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
> --- a/mm/slab.c > +++ b/mm/slab.c > @@ -3890,7 +3890,7 @@ void kmem_cache_free(struct kmem_cache *cachep, void *objp) > unsigned long flags; > > local_irq_save(flags); > - debug_check_no_locks_freed(objp, cachep->size); > + debug_check_no_locks_freed(objp, cachep->object_size); > if (!(cachep->flags & SLAB_DEBUG_OBJECTS)) > debug_check_no_obj_freed(objp, cachep->object_size); > __cache_free(cachep, objp, __builtin_return_address(0)); It works! No single error after a dozen reboots :-) Tested-by: Fengguang Wu <wfg@linux.intel.com> Thanks, Fengguang -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/mm/slab.c b/mm/slab.c index 64c3d03..605b3b7 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -3890,7 +3890,7 @@ void kmem_cache_free(struct kmem_cache *cachep, void *objp) unsigned long flags; local_irq_save(flags); - debug_check_no_locks_freed(objp, cachep->size); + debug_check_no_locks_freed(objp, cachep->object_size); if (!(cachep->flags & SLAB_DEBUG_OBJECTS)) debug_check_no_obj_freed(objp, cachep->object_size); __cache_free(cachep, objp, __builtin_return_address(0));