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 <[email protected]> Reviewed-by: Jani Nikula <[email protected]> Signed-off-by: Jouni Högander <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent d823445 commit 90c0756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)