Re: [PATCH] of: Fix phandle_node reference leak in of_map_id()

From: Rob Herring

Date: Wed Sep 30 2026 - 18:13:22 EST


On Thu, Sep 17, 2026 at 12:40:39PM +0000, Wentao Liang wrote:
> of_find_node_by_phandle() returns a node with an elevated reference
> count. When the caller passes target == NULL it only wants the
> translated ID, so that reference is never handed over and must be
> dropped before returning success.
>
> Fixes: 987068fcbdb7 ("of/irq: Break out msi-map lookup (again)")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Wentao Liang <vulab@xxxxxxxxxxx>
> ---
> drivers/of/base.c | 2 ++
> 1 file changed, 2 insertions(+)

This doesn't apply on current code.

Rob