From 825720316c0f63b029673f883c79a45e49e0f8ab Mon Sep 17 00:00:00 2001 Message-Id: <825720316c0f63b029673f883c79a45e49e0f8ab@dist-git> From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Fri, 6 Mar 2020 15:51:49 +0100 Subject: [PATCH] RHEL: qemuCheckUnprivSGIO: use @sysfs_path to get unpriv_sgio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Downstream commit 65f4ff0e2c9a968b7ec65c8d751d4055cc212628 RHEL: qemuSetUnprivSGIO: Actually use calculated @sysfs_path to set unpriv_sgio removed the device_path -> sysfs_path conversion from both virGetDeviceUnprivSGIO and virSetDeviceUnprivSGIO, but only adjusted one of the callers. https://bugzilla.redhat.com/show_bug.cgi?id=1808399 Signed-off-by: Ján Tomko Signed-off-by: Andrea Bolognani Message-Id: <20200306145149.1610286-7-abologna@redhat.com> Reviewed-by: Jiri Denemark --- src/qemu/qemu_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index 5788354444..a86e340013 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -1255,7 +1255,7 @@ qemuCheckUnprivSGIO(virHashTablePtr sharedDevices, goto cleanup; } - if (virGetDeviceUnprivSGIO(device_path, &val) < 0) + if (virGetDeviceUnprivSGIO(sysfs_path, &val) < 0) goto cleanup; /* Error message on failure needs to be handled in caller -- 2.25.1