mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 15:52:55 +00:00
qemu: do not revert to NULL bandwidth
Otherwise an attempt to set an invalid value: virsh domiftune rhel8.2 vnet0 --outbound 4294968 on an interface with no bandwidth set crashes. Signed-off-by: Ján Tomko <jtomko@redhat.com> Fixes: f02e21cb3379a41cd42f2d8116f2d10dabace83b https://bugzilla.redhat.com/show_bug.cgi?id=1800505 Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
cebb468ef5
commit
bd622e2a21
@ -11682,8 +11682,10 @@ qemuDomainSetInterfaceParameters(virDomainPtr dom,
|
||||
net->bandwidth,
|
||||
false,
|
||||
!virDomainNetTypeSharesHostView(net)));
|
||||
ignore_value(virDomainNetBandwidthUpdate(net,
|
||||
net->bandwidth));
|
||||
if (net->bandwidth) {
|
||||
ignore_value(virDomainNetBandwidthUpdate(net,
|
||||
net->bandwidth));
|
||||
}
|
||||
goto endjob;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user