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:
Peter Krempa 2016-09-14 05:58:33 +02:00
parent a46aa8852f
commit 3d5dd28995

View File

@ -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;
}