[PATCH] lib: fdtdec: Parse the gzip/lzo headers only when dependencies have met

Tom Rini trini at konsulko.com
Tue Oct 1 17:05:31 CEST 2024


On Tue, Oct 01, 2024 at 10:56:47AM +0100, Prabhakar wrote:

> From: Lad Prabhakar <prabhakar.mahadev-lad.rj at bp.renesas.com>
> 
> It might happen that CONFIG_GZIP and CONFIG_LZO are enabled but we might
> have CONFIG_MULTI_DTB_FIT_LZO enabled in this case in the code path of
> uncompress_blob() we parse the gzip headers first which results in
> `Error: Bad gzipped data` being printed. To avoid this parse the gzip/lzo
> headers only when dependencies have met.
> 
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj at bp.renesas.com>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20241001/ea20ef01/attachment.sig>


More information about the U-Boot mailing list