Commit b64875fe authored by Leon Elazar's avatar Leon Elazar Committed by Alex Deucher
Browse files

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: default avatarLeon Elazar <leon.elazar@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fb9611d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}