summaryrefslogtreecommitdiff
path: root/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2025-06-17 16:13:45 +0530
committerTom Rini <trini@konsulko.com>2025-06-25 09:50:37 -0600
commit4641419f41b347a38a07f19c809b7aab63864dd1 (patch)
treef81b01ce12d4e88dda98603b08e685f3aa0732c0 /arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
parent7aa19c3667d1cd23417f4ec7f5cb5dab260cfbf3 (diff)
mach-snapdragon: add a check before copying FDT to fdt_addr_r
The board_late_init() function allocates memory for a bunch of environment variables, including fdt_addr_r. The device-tree then gets copied to the memory pointed to by fdt_addr_r. However, the memory allocation request can fail, in which case the address that is being written to would not be allocated. Add a check that the memory allocation has succeeded before copying the device-tree. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Diffstat (limited to 'arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c')
0 files changed, 0 insertions, 0 deletions