mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
arm: mediatek: mt8188: check return value of fdtdec_setup_mem_size_base()
Check and propagate the return value of fdtdec_setup_mem_size_base() in dram_init() for mt8188. This function could fail if the device tree is malformed. Reviewed-by: Julien Stephan <jstephan@baylibre.com> Tested-by: Julien Stephan <jstephan@baylibre.com> Link: https://patch.msgid.link/20260319-mtk-init-fix-dram-v1-6-6171ec141f40@baylibre.com Signed-off-by: David Lechner <dlechner@baylibre.com>
This commit is contained in:
@@ -22,7 +22,9 @@ int dram_init(void)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
fdtdec_setup_mem_size_base();
|
||||
ret = fdtdec_setup_mem_size_base();
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
/*
|
||||
* Limit gd->ram_top not exceeding SZ_4G. Some periphals like mmc
|
||||
|
||||
Reference in New Issue
Block a user