summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAtish Patra <[email protected]>2020-06-18 18:51:50 -0700
committerHeinrich Schuchardt <[email protected]>2020-06-19 09:00:38 +0200
commit0d7c2913fdf71d74e0d6c710dcceaa29f3862d8c (patch)
treed92e35420112a3d9913448e870181571ee55bf2f /scripts
parent0b3a92dfa3639167e8d1e40f524b5b094fbcd357 (diff)
cmd: bootefi: Honor the address & size cells properties correctly
fdtdec_get_addr_size reads the uses a fixed value for address & size cell properties which may not be correct always. Use the auto variant of the function which automatically reads #address-cells & #size-cells from parent and uses to read the "reg" property. Signed-off-by: Atish Patra <[email protected]> On 32 bit systems fdt_addr_t may be 4 bytes long but size is defined as u64. Avoid filling the upper 4 bytes of the sizep parameter of fdtdec_get_addr_size_auto_parent() with random bytes from the stack by defining a separate variable fdt_size. Reviewed-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions