Re: [Qemu-devel] [PATCH] arm/boot: Free dtb blob memory after use

2013-06-18 Thread Peter Maydell
On 14 June 2013 12:27, Peter Maydell wrote: > 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 w

Re: [Qemu-devel] [PATCH] arm/boot: Free dtb blob memory after use

2013-06-14 Thread Peter Maydell
On 14 June 2013 18:14, Andreas Färber wrote: > Am 14.06.2013 13:27, schrieb Peter Maydell: >> 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 >>

Re: [Qemu-devel] [PATCH] arm/boot: Free dtb blob memory after use

2013-06-14 Thread Andreas Färber
Am 14.06.2013 13:27, schrieb Peter Maydell: > 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

[Qemu-devel] [PATCH] arm/boot: Free dtb blob memory after use

2013-06-14 Thread Peter Maydell
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 prin