mirror of
https://github.com/openbsd/src.git
synced 2026-04-21 04:34:20 +00:00
drm/amd/display: Fix drm_edid leak in amdgpu_dm
From Alex Hung eb95595194e4755b62360aa821f40a79b0953105 in linux-6.18.y/6.18.21 37c2caa167b0b8aca4f74c32404c5288b876a2a3 in mainline linux
This commit is contained in:
@@ -3830,8 +3830,9 @@ void amdgpu_dm_update_connector_after_detect(
|
||||
|
||||
aconnector->dc_sink = sink;
|
||||
dc_sink_retain(aconnector->dc_sink);
|
||||
drm_edid_free(aconnector->drm_edid);
|
||||
aconnector->drm_edid = NULL;
|
||||
if (sink->dc_edid.length == 0) {
|
||||
aconnector->drm_edid = NULL;
|
||||
hdmi_cec_unset_edid(aconnector);
|
||||
if (aconnector->dc_link->aux_mode) {
|
||||
drm_dp_cec_unset_edid(&aconnector->dm_dp_aux.aux);
|
||||
|
||||
Reference in New Issue
Block a user