提交 e5494507 编写于 作者: S Stefan Hajnoczi 提交者: Eric Blake

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: NStefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 23d47b33)
上级 759c7195
...@@ -3677,7 +3677,7 @@ qemuMonitorJSONBlockIoThrottleInfo(virJSONValuePtr result, ...@@ -3677,7 +3677,7 @@ qemuMonitorJSONBlockIoThrottleInfo(virJSONValuePtr result,
goto cleanup; goto cleanup;
} }
if (STREQ(current_dev, device)) if (STRNEQ(current_dev, device))
continue; continue;
found = true; found = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册