mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-16 23:19:36 -04:00
drm/amd/display: set NULL value during removal for remoteSink
In MST case during removal of remote sink its descriptor pointer wasn't freed corectly. Signed-off-by: Leon Elazar <leon.elazar@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
fb9611d216
commit
b64875feb1
@@ -1787,7 +1787,7 @@ void dc_link_remove_remote_sink(const struct dc_link *link, const struct dc_sink
|
||||
dc_link->remote_sinks[i] = dc_link->remote_sinks[i+1];
|
||||
i++;
|
||||
}
|
||||
|
||||
dc_link->remote_sinks[i] = NULL;
|
||||
dc_link->sink_count--;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user