vmm: fix deadlock on new cache

This commit is contained in:
Matheus
2023-06-08 21:56:29 -03:00
parent b9fe4cc3b1
commit 5ac1745b5f
+2 -1
View File
@@ -55,8 +55,9 @@ static vmmrange_t *allocrange() {
} else if (cache->header.next == NULL)
cache->header.next = newcache();
cache = cache->header.next;
vmmcache_t *next = cache->header.next;
spinlock_release(&cache->header.lock);
cache = next;
}
return range;