diff options
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/link/link_detection.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/link/link_detection.c b/drivers/gpu/drm/amd/display/dc/link/link_detection.c index 373e68cf2bde..080642dfde2a 100644 --- a/drivers/gpu/drm/amd/display/dc/link/link_detection.c +++ b/drivers/gpu/drm/amd/display/dc/link/link_detection.c @@ -623,6 +623,9 @@ static bool detect_dp(struct dc_link *link, static bool is_same_edid(struct dc_edid *old_edid, struct dc_edid *new_edid) { + if (old_edid == NULL || new_edid == NULL) + return false; + if (old_edid->length != new_edid->length) return false; |
