mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 08:05:24 +00:00
qemu: Fix name comparison in qemuMonitorJSONBlockIoThrottleInfo()
The string comparison logic was inverted and matched the first drive
that does *not* have the name we search for.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 23d47b33a2
)
This commit is contained in:
parent
759c7195f0
commit
e549450714
@ -3677,7 +3677,7 @@ qemuMonitorJSONBlockIoThrottleInfo(virJSONValuePtr result,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (STREQ(current_dev, device))
|
||||
if (STRNEQ(current_dev, device))
|
||||
continue;
|
||||
|
||||
found = true;
|
||||
|
Loading…
Reference in New Issue
Block a user