mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
resource_allocator: fix interrupt state leak
This commit is contained in:
@@ -39,6 +39,7 @@ size_t resource_allocate(resource_allocator_t *allocator, size_t count) {
|
|||||||
sched_prepare_sleep(false);
|
sched_prepare_sleep(false);
|
||||||
spinlock_release(&allocator->spinlock);
|
spinlock_release(&allocator->spinlock);
|
||||||
sched_yield();
|
sched_yield();
|
||||||
|
interrupt_set(status);
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user