]> git.ipfire.org Git - thirdparty/u-boot.git/commit
sandbox: Fix set_working_fdt_addr users
authorAlexander Graf <agraf@suse.de>
Wed, 26 Sep 2018 12:07:41 +0000 (14:07 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 26 Sep 2018 13:03:12 +0000 (15:03 +0200)
commiteaac4fb296b1899369e49d941f2c0d346c7f5c7a
tree93e6b1803cd091cde7645f43acd4449c70be31b6
parentc982874e930d5d673501cd94df07bcbd215d5883
sandbox: Fix set_working_fdt_addr users

When running sandbox with the new pointer sanitization we just recently
introduced, we're running into a case with FIT images where we end up
interpreting pointers as addresses.

What happened is that most callers of set_working_fdt_addr() simply
convert pointers into addresses without taking into account that they
might be 2 separate address spaces. Fix the callers up to map their
pointers into addresses.

This makes sandbox tests pass for me again.

Signed-off-by: Alexander Graf <agraf@suse.de>
common/bootm.c
common/image-fdt.c