From: Leon Elazar Date: Mon, 10 Apr 2017 13:37:11 +0000 (-0400) Subject: drm/amd/display: set NULL value during removal for remoteSink X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b64875feb18a734739929e2af8a625b186bb6ec0;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Harry Wentland Reviewed-by: Tony Cheng Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 203cb9d0c89d..70dc02cf4dbb 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -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; }