diff options
| author | 2026-01-28 00:43:10 +0800 | |
|---|---|---|
| committer | 2026-05-28 17:19:30 +0200 | |
| commit | 63a3998d792ab5c45304bf879e385a31fa923b61 (patch) | |
| tree | 788f64a751bbd1303db8065602f0d1756f02b43a /scripts/Makefile.thinlto | |
| parent | drm/tegra: Enable cmu for Tegra186 and Tegra194 (diff) | |
drm/tegra: dc: Fix device node reference leak in tegra_dc_has_output()
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 <ustc.gu@gmail.com>
Acked-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/20260128-dc-v1-1-a88205826301@gmail.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
