[PATCH] arm/virt: fix smmuv3_devices leak

marcandre.lureau@redhat.com posted 1 patch 2 weeks, 2 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260709111225.1106856-1-marcandre.lureau@redhat.com
Maintainers: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] arm/virt: fix smmuv3_devices leak
Posted by marcandre.lureau@redhat.com 2 weeks, 2 days ago
From: Marc-André Lureau <marcandre.lureau@redhat.com>

Fixes: 92e340997f861 ("hw/arm/virt: Use stored SMMUv3 device list for IORT build")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 hw/arm/virt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 6a3c69ba8f9..219597cabd0 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -4417,6 +4417,7 @@ static void virt_instance_finalize(Object *obj)
     }
     g_free(vms->oem_id);
     g_free(vms->oem_table_id);
+    g_ptr_array_free(vms->smmuv3_devices, TRUE);
 }
 
 static const TypeInfo virt_machine_info = {
-- 
2.55.0


Re: [PATCH] arm/virt: fix smmuv3_devices leak
Posted by Peter Maydell 1 week, 6 days ago
On Thu, 9 Jul 2026 at 12:12, <marcandre.lureau@redhat.com> wrote:
>
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Fixes: 92e340997f861 ("hw/arm/virt: Use stored SMMUv3 device list for IORT build")
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>  hw/arm/virt.c | 1 +



Applied to target-arm.next, thanks.

-- PMM