projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc70514
)
vfio/common: cleanup in vfio_region_finalize
author
Gerd Hoffmann
<kraxel@redhat.com>
Tue, 13 Mar 2018 17:17:29 +0000
(11:17 -0600)
committer
Alex Williamson
<alex.williamson@redhat.com>
Tue, 13 Mar 2018 17:17:29 +0000
(11:17 -0600)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed by: Kirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/common.c
patch
|
blob
|
history
diff --git
a/hw/vfio/common.c
b/hw/vfio/common.c
index f895e3c3359af779602c4eb77016fc4424ec3b9e..6a8203a53245dae624480c6209fe6fdafd638d4f 100644
(file)
--- a/
hw/vfio/common.c
+++ b/
hw/vfio/common.c
@@
-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)