lkml.org 
[lkml]   [2012]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: linux-next BUG: held lock freed!
    > --- 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


    \
     
     \ /
      Last update: 2012-07-02 08:02    [W:0.027 / U:29.128 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site