[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/3]hw: Fixs memleak of fdevice tree blob
From: |
kuhn.chenqun |
Subject: |
[PATCH 0/3]hw: Fixs memleak of fdevice tree blob |
Date: |
Tue, 18 Feb 2020 17:11:51 +0800 |
From: Chen Qun <address@hidden>
The device tree blob returned by load_device_tree is malloced.
We should free it after cpu_physical_memory_write().Otherwise,
if we repeatedly call 'system_reset',it will repeatedly load fdt,
so there are many memleaks.
Paolo Bonzini :
https://lists.gnu.org/archive/html/qemu-devel/2019-10/msg00129.html
Pan Nengyuan:
https://lists.gnu.org/archive/html/qemu-devel/2020-02/msg03594.html
After searching the device code, I found three similar issues.
This series fixes the last three.
Chen Qun (3):
hw/nios2:fix leak of fdevice tree blob
hw/ppc/virtex_ml507:fix leak of fdevice tree blob
hw/xtensa/xtfpga:fix leak of fdevice tree blob
hw/nios2/boot.c | 1 +
hw/ppc/virtex_ml507.c | 1 +
hw/xtensa/xtfpga.c | 1 +
3 files changed, 3 insertions(+)
--
2.23.0
- [PATCH 0/3]hw: Fixs memleak of fdevice tree blob,
kuhn.chenqun <=