diff options
author | Benjamin ROBIN <dev@benjarobin.fr> | 2025-05-20 22:35:15 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-05-30 13:43:37 -0600 |
commit | b8f282b8e0ee1e2c36694071c26b6b796f50c0a1 (patch) | |
tree | 6e8b142033e9c3e67f040fdc7c31fbda700372ca /drivers/fpga/intel_sdm_mb.c | |
parent | 6aa9c0f453cf920762e0b90d56d80f7cb36d5e6d (diff) |
bootm: Fix bmi->images pointer not initialized in some cases
When building with only bootz command, without bootm, images pointer
inside bootm_info structure is not initialized. And since this structure
is stored in stack, the generated error is kind of random, but most of
the time this will generate: "ramdisk - allocation error".
Also, after analysis, this problem could occur with the command booti,
if the command bootm is disabled.
Currently bootm_init() is called by: do_bootz(), do_bootm(), do_booti()
and by do_stm32prog(). And all of these commands execute bootm_run_states()
which access the images pointer stored into bootm_info structure.
So, to fix this issue, just do the assignment unconditionally.
Fixes: c2211ff65136 ("bootm: Add more fields to bootm_info")
Signed-off-by: Benjamin ROBIN <dev@benjarobin.fr>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/fpga/intel_sdm_mb.c')
0 files changed, 0 insertions, 0 deletions