diff options
| author | Peter Maydell | 2013-06-25 19:34:13 +0200 |
|---|---|---|
| committer | Peter Maydell | 2013-06-25 19:34:13 +0200 |
| commit | c23045ded7571f0eaad95920ab00b6bc9c3a91e6 (patch) | |
| tree | d393daa468cda11bd94e3a9728d15e63cf9f38f5 /hw/misc | |
| parent | i.MX: Rework functions/types name and use new style initialization (diff) | |
| download | qemu-c23045ded7571f0eaad95920ab00b6bc9c3a91e6.tar.gz qemu-c23045ded7571f0eaad95920ab00b6bc9c3a91e6.tar.xz qemu-c23045ded7571f0eaad95920ab00b6bc9c3a91e6.zip | |
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
Diffstat (limited to 'hw/misc')
0 files changed, 0 insertions, 0 deletions
