[PATCH v2 1/4] common: Only mark malloc initialized after mem_malloc_init

Simon Glass sjg at chromium.org
Wed Aug 9 04:03:55 CEST 2023


On Tue, 8 Aug 2023 at 16:53, Sean Anderson <sean.anderson at seco.com> wrote:
>
> Instead of marking malloc as initialized as soon as relocation is done,
> defer it until after we call mem_malloc_init. This ensures that malloc
> initialization is done before we switch away from simple_malloc, and
> matches the SPL behavior.
>
> Fixes: c9356be3074 ("dm: Split the simple malloc() implementation into its own file")
> Signed-off-by: Sean Anderson <sean.anderson at seco.com>
> ---
>
> Changes in v2:
> - New
>
>  common/board_r.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list