[PATCH 2/4] dm: core: fix wrong strlen check in of_add_subnode
Simon Glass
sjg at chromium.org
Thu Jul 9 21:15:06 CEST 2026
On 2026-07-03T09:11:23, Peng Fan <peng.fan at oss.nxp.com> wrote:
> dm: core: fix wrong strlen check in of_add_subnode
>
> 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>
> Reviewed-by: Raphaël Gallais-Pou <raphael.gallais-pou at foss.st.com>
>
> drivers/core/of_access.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list