mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +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);
|
||||
spinlock_release(&allocator->spinlock);
|
||||
sched_yield();
|
||||
interrupt_set(status);
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user