On Wed, Jan 28, 2026 at 12:43:10AM +0800, Felix Gu wrote:
> The of_for_each_phandle() macro increments the reference count of the
> device node it iterates over. If the loop exits early, the reference must
> be released manually.
>
> In tegra_dc_has_output(), the function returns true immediately when a
> match is found, failing to release the current node's reference.
>
> Fix this by adding a call to of_node_put() before returning from the loop.
>
> Fixes: c57997bce423 ("drm/tegra: sor: Add Tegra186 support")
> Signed-off-by: Felix Gu <[email protected]>
> ---
> drivers/gpu/drm/tegra/dc.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)Sorry for missing this earlier. Applied now, thanks. Thierry
signature.asc
Description: PGP signature
