Page MenuHomeFreeBSD

D37648.diff
No OneTemporary

D37648.diff

diff --git a/sys/amd64/vmm/vmm_dev.c b/sys/amd64/vmm/vmm_dev.c
--- a/sys/amd64/vmm/vmm_dev.c
+++ b/sys/amd64/vmm/vmm_dev.c
@@ -149,7 +149,7 @@
{
struct vcpu *vcpu;
int error;
- uint16_t i, maxcpus;
+ uint16_t i, j, maxcpus;
vm_slock_vcpus(sc->vm);
maxcpus = vm_get_maxcpus(sc->vm);
@@ -163,11 +163,11 @@
}
if (error) {
- while (--i >= 0) {
- vcpu = vm_vcpu(sc->vm, i);
+ for (j = 0; j < i; j++) {
+ vcpu = vm_vcpu(sc->vm, j);
if (vcpu == NULL)
continue;
- vcpu_unlock_one(sc, i, vcpu);
+ vcpu_unlock_one(sc, j, vcpu);
}
vm_unlock_vcpus(sc->vm);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 5:40 PM (22 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14701784
Default Alt Text
D37648.diff (592 B)

Event Timeline