14bfca0dec
The TYPE_XLNX_VERSAL_TRNG device creates a register block with register_init_block32() in its instance_init method; we must therefore destroy it in our instance_finalize method to avoid a leak in the QOM introspection "init-inspect-finalize" lifecycle: Direct leak of 304 byte(s) in 1 object(s) allocated from: #0 0x55842ec799d8 in __interceptor_calloc (/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/asan/qemu-system-aarch64+0x294e9d8) (BuildId: 47496e53f3e779f1c7e9b82cbea07407152b498b) #1 0x7fe793c75c50 in g_malloc0 debian/build/deb/../../../glib/gmem.c:161:13 #2 0x55842f0aec5d in register_init_block hw/core/register.c:248:34 #3 0x55842f0af6be in register_init_block32 hw/core/register.c:299:12 #4 0x55842f801588 in trng_init hw/misc/xlnx-versal-trng.c:614:9 #5 0x558431c411a1 in object_init_with_type qom/object.c:420:9 #6 0x558431c2847b in object_initialize_with_type qom/object.c:562:5 #7 0x558431c29d1d in object_new_with_type qom/object.c:782:5 #8 0x558431c29df1 in object_new qom/object.c:797:12 #9 0x558432427c1d in qmp_device_list_properties qom/qom-qmp-cmds.c:144:11 Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com> Reviewed-by: Francisco Iglesias <francisco.iglesias@amd.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20240822162127.705879-6-peter.maydell@linaro.org |
||
---|---|---|
.. | ||
macio | ||
a9scu.h | ||
allwinner-a10-ccm.h | ||
allwinner-a10-dramc.h | ||
allwinner-cpucfg.h | ||
allwinner-h3-ccu.h | ||
allwinner-h3-dramc.h | ||
allwinner-h3-sysctrl.h | ||
allwinner-r40-ccu.h | ||
allwinner-r40-dramc.h | ||
allwinner-sid.h | ||
allwinner-sramc.h | ||
arm11scu.h | ||
arm_integrator_debug.h | ||
armsse-cpu-pwrctrl.h | ||
armsse-cpuid.h | ||
armsse-mhu.h | ||
armv7m_ras.h | ||
aspeed_hace.h | ||
aspeed_i3c.h | ||
aspeed_lpc.h | ||
aspeed_peci.h | ||
aspeed_sbc.h | ||
aspeed_scu.h | ||
aspeed_sdmc.h | ||
aspeed_sli.h | ||
aspeed_xdma.h | ||
auxbus.h | ||
avr_power.h | ||
bcm2835_cprman_internals.h | ||
bcm2835_cprman.h | ||
bcm2835_mbox_defs.h | ||
bcm2835_mbox.h | ||
bcm2835_mphi.h | ||
bcm2835_powermgt.h | ||
bcm2835_property.h | ||
bcm2835_rng.h | ||
bcm2835_thermal.h | ||
cbus.h | ||
djmemc.h | ||
empty_slot.h | ||
grlib_ahb_apb_pnp.h | ||
imx6_ccm.h | ||
imx6_src.h | ||
imx6ul_ccm.h | ||
imx7_ccm.h | ||
imx7_gpr.h | ||
imx7_snvs.h | ||
imx7_src.h | ||
imx25_ccm.h | ||
imx31_ccm.h | ||
imx_ccm.h | ||
imx_rngc.h | ||
iosb.h | ||
iotkit-secctl.h | ||
iotkit-sysctl.h | ||
iotkit-sysinfo.h | ||
ivshmem.h | ||
lasi.h | ||
led.h | ||
mac_via.h | ||
mchp_pfsoc_dmc.h | ||
mchp_pfsoc_ioscb.h | ||
mchp_pfsoc_sysreg.h | ||
mips_cmgcr.h | ||
mips_cpc.h | ||
mips_itu.h | ||
mos6522.h | ||
mps2-fpgaio.h | ||
mps2-scc.h | ||
msf2-sysreg.h | ||
npcm7xx_clk.h | ||
npcm7xx_gcr.h | ||
npcm7xx_mft.h | ||
npcm7xx_pwm.h | ||
npcm7xx_rng.h | ||
nrf51_rng.h | ||
pvpanic.h | ||
sifive_e_aon.h | ||
sifive_e_prci.h | ||
sifive_test.h | ||
sifive_u_otp.h | ||
sifive_u_prci.h | ||
stm32f2xx_syscfg.h | ||
stm32f4xx_exti.h | ||
stm32f4xx_syscfg.h | ||
stm32l4x5_exti.h | ||
stm32l4x5_rcc_internals.h | ||
stm32l4x5_rcc.h | ||
stm32l4x5_syscfg.h | ||
tz-mpc.h | ||
tz-msc.h | ||
tz-ppc.h | ||
unimp.h | ||
virt_ctrl.h | ||
vmcoreinfo.h | ||
xlnx-cfi-if.h | ||
xlnx-versal-cframe-reg.h | ||
xlnx-versal-cfu.h | ||
xlnx-versal-crl.h | ||
xlnx-versal-pmc-iou-slcr.h | ||
xlnx-versal-trng.h | ||
xlnx-versal-xramc.h | ||
xlnx-zynqmp-apu-ctrl.h | ||
xlnx-zynqmp-crf.h |