[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] arm/boot: Free dtb blob memory after use
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH] arm/boot: Free dtb blob memory after use |
Date: |
Tue, 18 Jun 2013 18:25:54 +0100 |
On 14 June 2013 12:27, Peter Maydell <address@hidden> 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 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 <address@hidden>
Applied to arm-devs.next (fixing up the trivial conflict with
the "drop CONFIG_FDT" patch in the process).
-- PMM