Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f430f58 in mainline


Ignore:
Timestamp:
2010-02-17T01:02:59Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
007ea776
Parents:
7fb2ce3
Message:

Fix unlocking in ddi_physmem_map().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ddi/ddi.c

    r7fb2ce3 rf430f58  
    146146                    (btree_key_t) pf, &nodep);
    147147               
    148                 if ((!parea) || (parea->frames < pages))
     148                if ((!parea) || (parea->frames < pages)) {
     149                        spinlock_unlock(&parea_lock);
    149150                        goto err;
     151                }
    150152               
    151153                spinlock_unlock(&parea_lock);
     
    153155        }
    154156       
     157        spinlock_unlock(&zones.lock);
    155158err:
    156         spinlock_unlock(&zones.lock);
    157159        interrupts_restore(ipl);
    158160        return ENOENT;
Note: See TracChangeset for help on using the changeset viewer.