On 2026-07-03T09:11:23, Peng Fan <[email protected]> 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 <[email protected]>
> Reviewed-by: RaphaĆ«l Gallais-Pou <[email protected]>
>
> drivers/core/of_access.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to