Changeset 182 for trunk/kernel/mm/kcm.c


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

lock leak

File:
1 edited

Legend:

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

    r176 r182  
    291291                kcm_page = freelist_get( kcm );
    292292
    293                 if( kcm_page == NULL ) return NULL;
     293                if( kcm_page == NULL )
     294                {
     295                        spinlock_unlock( &kcm->lock );
     296                        return NULL;
     297                }
    294298
    295299                // insert page in active list
Note: See TracChangeset for help on using the changeset viewer.