Changeset 179 for trunk/kernel/mm/vmm.c


Ignore:
Timestamp:
Jul 11, 2017, 1:02:42 PM (7 years ago)
Author:
max@…
Message:

fix a lock leak, there are many others left...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/vmm.c

    r178 r179  
    383383    // get first free slot index in bitmap
    384384    int32_t index = bitmap_ffc( &mgr->bitmap , 4 );
    385     if( (index < 0) || (index > 31) ) return ENOMEM;
     385    if( (index < 0) || (index > 31) )
     386    {
     387        spinlock_unlock( &mgr->lock );
     388        return ENOMEM;
     389    }
    386390
    387391    // update bitmap
Note: See TracChangeset for help on using the changeset viewer.