diff options
| author | Sughosh Ganu <[email protected]> | 2025-06-17 16:13:45 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-06-25 09:50:37 -0600 |
| commit | 4641419f41b347a38a07f19c809b7aab63864dd1 (patch) | |
| tree | f81b01ce12d4e88dda98603b08e685f3aa0732c0 /doc/develop | |
| parent | 7aa19c3667d1cd23417f4ec7f5cb5dab260cfbf3 (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 <[email protected]>
Diffstat (limited to 'doc/develop')
0 files changed, 0 insertions, 0 deletions
