drm/amd/display: Add NULL check for enabling dp ss
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 30 Jul 2018 16:27:23 +0000 (12:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Aug 2018 20:57:02 +0000 (15:57 -0500)
commitfb7b11e1633e50b9a6b3fffe5cd151474aee9802
tree4f7312b9f8fad0e51769c2e1aae0b87d57da1a7a
parentad830e7ab1847f4a014c04496b2581a7497b204f
drm/amd/display: Add NULL check for enabling dp ss

[Why]

The pointer for integrated_info can be NULL which causes the system to
do a null pointer deference and hang on boot.

[How]

Add a check to ensure that integrated_info is not null before enabling
DP ss.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Sun peng Li <Sunpeng.Li@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c