« Previous | Next » 

Revision c23045de

IDc23045ded7571f0eaad95920ab00b6bc9c3a91e6

Added by Peter Maydell almost 11 years ago

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 <>
Reviewed-by: Andreas Färber <>
Message-id:

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences