Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102829823
D37648.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
592 B
Referenced Files
None
Subscribers
None
D37648.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D37648: vmm: Avoid infinite loop in vcpu_lock_all error case.
Attached
Detach File
Event Timeline
Log In to Comment