qemu-e2k/hw/arm
Peter Maydell c23045ded7 arm/boot: Free dtb blob memory after use
The dtb blob returned by load_device_tree() is in memory allocated
with g_malloc(). Free it accordingly once we have copied its
contents into the guest memory. To make this easy, we need also to
clean up the error handling in load_dtb() so that we consistently
handle errors in the same way (by printing a message and then
returning -1, rather than either plowing on or exiting immediately).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Message-id: 1371209256-11408-1-git-send-email-peter.maydell@linaro.org
2013-06-25 18:34:13 +01:00
..
armv7m.c Remove unneeded type casts 2013-04-19 11:36:33 +02:00
boot.c arm/boot: Free dtb blob memory after use 2013-06-25 18:34:13 +01:00
collie.c
exynos4_boards.c
exynos4210.c exynos4210.c: register rom_mem for memory migration 2013-06-03 17:17:46 +01:00
gumstix.c
highbank.c remove some double-includes 2013-05-18 16:35:12 +04:00
integratorcp.c
kzm.c
mainstone.c
Makefile.objs
musicpal.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
nseries.c Remove unneeded type casts 2013-04-19 11:36:33 +02:00
omap1.c Remove unneeded type casts 2013-04-19 11:36:33 +02:00
omap2.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
omap_sx1.c
palm.c
pic_cpu.c
pxa2xx_gpio.c
pxa2xx_pic.c
pxa2xx.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
realview.c versatile_pci: Expose PCI memory space to system 2013-04-19 11:15:20 +01:00
spitz.c spitz: fix compilation failure due to pty.h namespace pollution 2013-05-14 08:53:16 -05:00
stellaris.c
strongarm.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
strongarm.h
tosa.c
versatilepb.c versatile_pci: Expose PCI memory space to system 2013-04-19 11:15:20 +01:00
vexpress.c
xilinx_zynq.c xilinx_spips: seperate SPI and QSPI as two classes 2013-06-03 17:17:41 +01:00
z2.c