Commit 4c5376b
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: [email protected]
Fixes: a31500f ("drm/tegra: dc: Restore coupling of display controllers")
Signed-off-by: Ma Ke <[email protected]>
Acked-by: Mikko Perttunen <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Link: https://patch.msgid.link/[email protected]1 parent 0a4a18e commit 4c5376b
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3148 | 3148 | | |
3149 | 3149 | | |
3150 | 3150 | | |
| 3151 | + | |
3151 | 3152 | | |
3152 | 3153 | | |
3153 | 3154 | | |
| |||
0 commit comments