mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-16 17:36:22 +07: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:
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user