drm/amd/display: Clear connector's edid pointer
authorMikita Lipski <mikita.lipski@amd.com>
Fri, 27 Apr 2018 13:09:52 +0000 (09:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 18 May 2018 21:08:30 +0000 (16:08 -0500)
Clear connector's edid pointer on coonnector update, when unplugging
the display.

Fix poison EDID when hotplugging on previously used connector.

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 6d0dc1fecb39746fea34b76abfa0c69716250d12..1ce10bc2d37bd1c2628c458d727f475a8723f967 100644 (file)
@@ -911,6 +911,7 @@ amdgpu_dm_update_connector_after_detect(struct amdgpu_dm_connector *aconnector)
                drm_mode_connector_update_edid_property(connector, NULL);
                aconnector->num_modes = 0;
                aconnector->dc_sink = NULL;
+               aconnector->edid = NULL;
        }
 
        mutex_unlock(&dev->mode_config.mutex);