diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-01-27 19:43:10 +0300 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2026-05-28 18:19:30 +0300 |
| commit | 63a3998d792ab5c45304bf879e385a31fa923b61 (patch) | |
| tree | 788f64a751bbd1303db8065602f0d1756f02b43a /include/linux/timerqueue.h | |
| parent | ad8357df04765bd9e92a30a5cf14c74071af864b (diff) | |
| download | linux-63a3998d792ab5c45304bf879e385a31fa923b61.tar.xz | |
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 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
