mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06: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
1 changed files with 7 additions and 0 deletions
|
@ -858,6 +858,13 @@ void vfio_region_finalize(VFIORegion *region)
|
||||||
g_free(region->mmaps);
|
g_free(region->mmaps);
|
||||||
|
|
||||||
trace_vfio_region_finalize(region->vbasedev->name, region->nr);
|
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)
|
void vfio_region_mmaps_set_enabled(VFIORegion *region, bool enabled)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue