提交 6ca56496 编写于 作者: S Stefan Hajnoczi 提交者: Cole Robinson

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)
上级 39a427e8
...@@ -3518,7 +3518,7 @@ qemuMonitorJSONBlockIoThrottleInfo(virJSONValuePtr result, ...@@ -3518,7 +3518,7 @@ qemuMonitorJSONBlockIoThrottleInfo(virJSONValuePtr result,
goto cleanup; goto cleanup;
} }
if (STREQ(current_dev, device)) if (STRNEQ(current_dev, device))
continue; continue;
found = 1; found = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册