diff options
| author | Ma Ke <make24@iscas.ac.cn> | 2025-10-22 19:47:20 +0800 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2025-11-14 17:58:26 +0100 |
| commit | 4c5376b4b143c4834ebd392aef2215847752b16a (patch) | |
| tree | b503407ce4593857cc67821821ebbc1df2ccbd97 /net/unix/af_unix.c | |
| parent | 0a4a18e888ae8c8004582f665c5792c84a681668 (diff) | |
drm/tegra: dc: Fix reference leak in tegra_dc_couple()
driver_find_device() calls get_device() to increment the reference
count once a matching device is found, but there is no put_device() to
balance the reference count. To avoid reference count leakage, add
put_device() to decrease the reference count.
Found by code review.
Cc: stable@vger.kernel.org
Fixes: a31500fe7055 ("drm/tegra: dc: Restore coupling of display controllers")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Acked-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/20251022114720.24937-1-make24@iscas.ac.cn
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
