mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 08:05:16 +00:00
qemu: process: Fix off-by-one in vcpu order duplicate error message
The bitmap indexes for the order duplicate check are shifted to 0 since vcpu order 0 is not allowed. The error message doesn't need such treating though. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1370360
This commit is contained in:
parent
a46aa8852f
commit
3d5dd28995
@ -4807,7 +4807,7 @@ qemuProcessValidateHotpluggableVcpus(virDomainDefPtr def)
|
||||
if (vcpu->order != 0) {
|
||||
if (virBitmapIsBitSet(ordermap, vcpu->order - 1)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("duplicate vcpu order '%u'"), vcpu->order - 1);
|
||||
_("duplicate vcpu order '%u'"), vcpu->order);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user