[PATCH 2/4] dm: core: fix wrong strlen check in of_add_subnode

Raphael Gallais-Pou raphael.gallais-pou at foss.st.com
Tue Jul 7 10:36:23 CEST 2026



On 7/3/26 11:11, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>The duplicate-name check uses strlen on the
> search name instead of the child name, so a child named "trevor" would falsely
> match a search for "trev". Fix by checking strlen of child->name.
> Signed-off-by: Peng Fan <peng.fan at nxp.com>---


Hi, 

Reviewed-by: Raphaël Gallais-Pou <raphael.gallais-pou at foss.st.com>

Best regards,
Raphaël


More information about the U-Boot mailing list