1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00
Files
u-boot-megous/drivers
Simon Glass e18c41fca4 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>
2019-10-03 21:10:53 +08:00
..
2019-08-26 21:16:24 +05:30
2019-08-11 16:43:41 -04:00
2019-08-11 16:43:41 -04:00
2019-09-02 06:35:08 +02:00
2019-08-11 16:43:41 -04:00
2019-08-26 11:46:28 -04:00
2019-08-07 15:31:04 -04:00
2019-07-19 20:14:50 +02:00
2019-08-11 16:43:41 -04:00
2019-09-19 12:18:53 -04:00
2019-08-11 16:43:41 -04:00
2019-09-16 08:09:22 +05:30
2019-08-11 16:43:41 -04:00
2019-07-19 15:17:05 +02:00
2019-08-11 19:27:41 -04:00
2019-08-11 19:27:41 -04:00