Files
qemu/hw/ppc
Jinhao Gao e6ddad1fd5 spapr_pci: Fix memory leak of vmstate_spapr_pci
When VM migrate VMState of spapr_pci, the field(msi_devs) of spapr_pci
having a flag of VMS_ALLOC need to allocate memory. If the src doesn't free
memory of msi_devs in SaveStateEntry of spapr_pci after QEMUFile save
VMState of spapr_pci, it may result in memory leak of msi_devs. We add the
post_save func to free memory, which prevents memory leak.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Jinhao Gao <gaojinhao@huawei.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20201231061020.828-2-gaojinhao@huawei.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2021-02-08 11:19:51 +00:00
..
2020-12-15 12:51:55 -05:00
2020-09-18 14:12:32 -04:00
2020-02-19 16:50:00 +00:00
2020-02-19 16:50:00 +00:00
2020-09-08 10:08:42 +10:00
2020-12-10 12:15:18 -05:00
2020-12-10 12:15:09 -05:00
2020-12-08 13:48:57 -05:00
2020-12-10 12:15:09 -05:00