mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
vmm: fix deadlock on new cache
This commit is contained in:
+2
-1
@@ -55,8 +55,9 @@ static vmmrange_t *allocrange() {
|
|||||||
} else if (cache->header.next == NULL)
|
} else if (cache->header.next == NULL)
|
||||||
cache->header.next = newcache();
|
cache->header.next = newcache();
|
||||||
|
|
||||||
cache = cache->header.next;
|
vmmcache_t *next = cache->header.next;
|
||||||
spinlock_release(&cache->header.lock);
|
spinlock_release(&cache->header.lock);
|
||||||
|
cache = next;
|
||||||
}
|
}
|
||||||
|
|
||||||
return range;
|
return range;
|
||||||
|
|||||||
Reference in New Issue
Block a user