]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/vfio: fix iteration over global VFIODevice list
authorVolker Rümelin <vr_qemu@t-online.de>
Fri, 29 Dec 2023 20:38:54 +0000 (21:38 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 8 Jan 2024 16:29:12 +0000 (19:29 +0300)
commitae594658663b8408299d0546a8a450efb8ad5494
treeddd96ee9c3749f72747920d0de2575878340d53c
parent5f64bed67ca23976c0d00209559a35e61a6e1f96
hw/vfio: fix iteration over global VFIODevice list

Commit 3d779abafe ("vfio/common: Introduce a global VFIODevice list")
introduced a global VFIODevice list, but forgot to update the list
element field name when iterating over the new list. Change the code
to use the correct list element field.

Fixes: 3d779abafe ("vfio/common: Introduce a global VFIODevice list")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2061
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
(cherry picked from commit 9353b6da430f90e47f352dbf6dc31120c8914da6)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/vfio/common.c