diff options
| author | Simon Glass <[email protected]> | 2023-11-18 14:05:01 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-12-13 11:51:24 -0500 |
| commit | 4f77169c942b10f9b6dc45a3bc4be65a3d086607 (patch) | |
| tree | 9968e35c25c2a952147aee673a5dca4e56beb764 /boot | |
| parent | 7721e71f031894da02a8f7a1f419891582b1747c (diff) | |
bootm: Adjust position of unmap_sysmem() in boot_get_kernel()
These unmaps should happen regardless of the return value. Move them
before the 'return' statement.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'boot')
| -rw-r--r-- | boot/bootm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/bootm.c b/boot/bootm.c index 1f3a01994cb..6ed60bf0508 100644 --- a/boot/bootm.c +++ b/boot/bootm.c @@ -222,12 +222,12 @@ static int boot_get_kernel(const char *cmd_name, const char *addr_fit, printf("## Booting Android Image at 0x%08lx ...\n", img_addr); ret = android_image_get_kernel(boot_img, vendor_boot_img, images->verify, os_data, os_len); - if (ret) - return ret; if (IS_ENABLED(CONFIG_CMD_ABOOTIMG)) { unmap_sysmem(vendor_boot_img); unmap_sysmem(boot_img); } + if (ret) + return ret; break; } #endif |
