diff options
author | Victor Lu | 2021-01-15 11:02:48 -0500 |
---|---|---|
committer | Alex Deucher | 2021-02-02 17:45:01 -0500 |
commit | 8e92bb0fa75bca9a57e4aba2e36f67d8016a3053 (patch) | |
tree | f038f309a5ff6d228ce9ad1526deb3de0b9542d3 /mm/util.c | |
parent | 2abaa323d744011982b20b8f3886184d56d23946 (diff) |
drm/amd/display: Decrement refcount of dc_sink before reassignment
[why]
An old dc_sink state is causing a memory leak because it is missing a
dc_sink_release before a new dc_sink is assigned back to
aconnector->dc_sink.
[how]
Decrement the dc_sink refcount before reassigning it to a new dc_sink.
Signed-off-by: Victor Lu <victorchengchi.lu@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions