diff options
author | John Levon <john.levon@nutanix.com> | 2025-07-15 13:59:52 +0200 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2025-07-15 17:11:12 +0200 |
commit | 09353802f0021af9f13ebe9336e1994da4505626 (patch) | |
tree | 333b9648ffa1683c7583da252108dda86e660e78 /scripts/qapi/parser.py | |
parent | 0c1a109fe6d1bcad98f217dd9ce8767b07039df0 (diff) | |
download | qemu-09353802f0021af9f13ebe9336e1994da4505626.zip qemu-09353802f0021af9f13ebe9336e1994da4505626.tar.gz qemu-09353802f0021af9f13ebe9336e1994da4505626.tar.bz2 |
hw/vfio: fix region fd initialization
We were not initializing the region fd array to -1, so we would
accidentally try to close(0) on cleanup for any region that is not
referenced.
Fixes: 95cdb024 ("vfio: add region info cache")
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250715115954.515819-3-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions