]> git.ipfire.org Git - thirdparty/qemu.git/commit
pcie_sriov: unregister_vfs(): fix error path
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Mon, 25 Sep 2023 19:40:35 +0000 (22:40 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Oct 2023 22:15:06 +0000 (18:15 -0400)
commitf1a153857abc1ba8835b12a01520df9f1b64e15b
treea8a59c4c97c216463667a994b3b058c067df075f
parentcf0386509ece089213226855ae685e2228315ffe
pcie_sriov: unregister_vfs(): fix error path

local_err must be NULL before calling object_property_set_bool(), so we
must clear it on each iteration. Let's also use more convenient
error_reportf_err().

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Message-Id: <20230925194040.68592-8-vsementsov@yandex-team.ru>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pcie_sriov.c