c23045ded7
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 |
||
---|---|---|
.. | ||
armv7m.c | ||
boot.c | ||
collie.c | ||
exynos4_boards.c | ||
exynos4210.c | ||
gumstix.c | ||
highbank.c | ||
integratorcp.c | ||
kzm.c | ||
mainstone.c | ||
Makefile.objs | ||
musicpal.c | ||
nseries.c | ||
omap1.c | ||
omap2.c | ||
omap_sx1.c | ||
palm.c | ||
pic_cpu.c | ||
pxa2xx_gpio.c | ||
pxa2xx_pic.c | ||
pxa2xx.c | ||
realview.c | ||
spitz.c | ||
stellaris.c | ||
strongarm.c | ||
strongarm.h | ||
tosa.c | ||
versatilepb.c | ||
vexpress.c | ||
xilinx_zynq.c | ||
z2.c |