mirror of
https://github.com/qemu/qemu.git
synced 2024-11-27 05:43:47 +08:00
vfio/common: cleanup in vfio_region_finalize
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed by: Kirti Wankhede <kwankhede@nvidia.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
parent
fc70514ccf
commit
92f86bff08
@ -858,6 +858,13 @@ void vfio_region_finalize(VFIORegion *region)
|
||||
g_free(region->mmaps);
|
||||
|
||||
trace_vfio_region_finalize(region->vbasedev->name, region->nr);
|
||||
|
||||
region->mem = NULL;
|
||||
region->mmaps = NULL;
|
||||
region->nr_mmaps = 0;
|
||||
region->size = 0;
|
||||
region->flags = 0;
|
||||
region->nr = 0;
|
||||
}
|
||||
|
||||
void vfio_region_mmaps_set_enabled(VFIORegion *region, bool enabled)
|
||||
|
Loading…
Reference in New Issue
Block a user