Re: [PATCH] board_f: Call initf_malloc() before fdtdec_setup()

Tom Rini <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <178639521024.1450255.16734759763947956211.b4-ty__42660.7832707063$1786395232$gmane$org@konsulko.com>
On Tue, 21 Jul 2026 21:48:02 +0200, Marek Vasut via U-Boot wrote:

> In case MULTI_DTB_FIT_GZIP is enabled, fdtdec_setup() does uncompress
> the compressed DTs in uncompress_blob() using gunzip(), which invokes
> malloc() internally. The early simple malloc is initialized in board_f
> initf_malloc() call, which sets up the early simple malloc limit and
> offset pointer in global data. Currently, the initf_malloc() is called
> after fdtdec_setup(), which leads to malloc failure in fdtdec_setup()
> during the gzip decompression, because the early simple malloc is not
> initialized yet.
> 
> [...]

Applied to u-boot/main, thanks!

[1/1] board_f: Call initf_malloc() before fdtdec_setup()
      commit: 8da656ae6a9778ffe111c4a3b6a7795b2e7ee6d1
-- 
Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.