Skip to content

Commit 90c0756

Browse files
juhapekkahogander
authored andcommitted
drm/i915/sdvo: ignore returned broken edid on intel_sdvo_tmds_sink_detect
If drm_edid_raw returned NULL on error don't try accessing anything behind that NULL Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230803143530.27601-1-juhapekka.heikkila@gmail.com
1 parent d823445 commit 90c0756

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/i915/display/intel_sdvo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2097,7 +2097,7 @@ intel_sdvo_tmds_sink_detect(struct drm_connector *connector)
20972097
const struct edid *edid = drm_edid_raw(drm_edid);
20982098

20992099
/* DDC bus is shared, match EDID to connector type */
2100-
if (edid->input & DRM_EDID_INPUT_DIGITAL)
2100+
if (edid && edid->input & DRM_EDID_INPUT_DIGITAL)
21012101
status = connector_status_connected;
21022102
else
21032103
status = connector_status_disconnected;

0 commit comments

Comments
 (0)