diff options
author | Simon Glass <sjg@chromium.org> | 2019-09-25 08:55:50 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-10-03 21:10:53 +0800 |
commit | e18c41fca46a33bf76b4664796e3e132dc71c6cb (patch) | |
tree | f29702dda7e243da36e99f9d255d7fe60fce0870 /arch/arm/dts/zynq-zc770-xm010.dts | |
parent | e587886a6112e476a74a26e6cf7068a23723097c (diff) |
dm: core: Correct bad cast in ofnode_get_addr_size_index()
At present this code passes an fdt_addr_t pointer as a u64 pointer which
is not safe, since sizeof(fdt_addr_t) may be 4, e.g. with sandbox. Correct
this to avoid a stack corruption problem.
Fixes: e679d03b08 (core: ofnode: Add ofnode_get_addr_size_index)
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: correct one typo in the commit message]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/arm/dts/zynq-zc770-xm010.dts')
0 files changed, 0 insertions, 0 deletions