mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
Fix off-by-1 in SCSI drive hotplug
The loop looking for the controller associated with a SCI drive had an off by one, causing it to miss the last controller. * src/qemu/qemu_driver.c: Fix off-by-1 in searching for SCSI drive hotplug
This commit is contained in:
parent
e3a0c80f1d
commit
6512d09cf8
@ -5345,7 +5345,7 @@ static int qemudDomainAttachSCSIDisk(virConnectPtr conn,
|
||||
goto error;
|
||||
}
|
||||
|
||||
for (i = 0 ; i < disk->info.addr.drive.controller ; i++) {
|
||||
for (i = 0 ; i <= disk->info.addr.drive.controller ; i++) {
|
||||
cont = qemuDomainFindOrCreateSCSIDiskController(conn, driver, vm, i);
|
||||
if (!cont)
|
||||
goto error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user