mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
xen: Fix device count on detach
This commit is contained in:
parent
9f45fabda2
commit
8ebda73609
@ -3056,6 +3056,7 @@ xenXMDomainDetachDeviceFlags(virDomainPtr domain, const char *xml,
|
||||
def->disks + i + 1,
|
||||
sizeof(*def->disks) *
|
||||
(def->ndisks - (i + 1)));
|
||||
def->ndisks--;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -3074,6 +3075,7 @@ xenXMDomainDetachDeviceFlags(virDomainPtr domain, const char *xml,
|
||||
def->nets + i + 1,
|
||||
sizeof(*def->nets) *
|
||||
(def->nnets - (i + 1)));
|
||||
def->nnets--;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user