[PATCH] fdt: Check return value and len of fdt_get_name() calls

Tom Rini trini at konsulko.com
Tue May 26 19:15:57 CEST 2026


On Tue, May 26, 2026 at 11:57:40AM +0100, Anton Ivanov wrote:
> > So scripts/dtc/libfdt/fdt_ro.c comes from https://github.com/dgibson/dtc
> > and should be sent upstream there too (and all of scripts/dtc/ is, for
> > reference for the other patches), so that we don't drop this part when
> > re-syncing later via the linux kernel.
> 
> The patch for fdt_check_full() was added in the upstream dtc code back in
> 2022:
> https://github.com/dgibson/dtc/commit/fda71da26e7fa00966a58afeb2114269b5512e59
> 
> It was never ported to U-Boot, most likely because the function was moved
> from fdt_ro.c to the fdt_check.c.
> Linux kernel does not use fdt_check_full(), and thus it is not affected.
> 
> We also updated the BRLY-2026-037_BRLY-2026-038.patch to align with the
> current dtc logic:
> https://github.com/dgibson/dtc/commit/50454658f2b5c8968ccd7856d94020c893a4be46

Thanks for explaining. A bit more of a detailed rework needs to be done
then, I'll go look at that.

> > Next, please rewrite the commit message to be concise and follow best
> > practices and examples found throughout the codebase. This applies to
> > all of the patches you posted, thanks.
> 
> We sent the new version of patches with the updated commit messages.

Thanks.

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


More information about the U-Boot mailing list