Skip to content
Commit e18c41fc authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

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: e679d03b (core: ofnode: Add ofnode_get_addr_size_index)
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
[bmeng: correct one typo in the commit message]
Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent e587886a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment