drm/amd/display: Add pp_smu null pointer check
authorCharlene Liu <charlene.liu@amd.com>
Tue, 19 Feb 2019 17:14:19 +0000 (12:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:03 +0000 (15:04 -0500)
commita08ac5a62c0f8b29d110004d05b1554a8b8fd5f5
treef18673410046bf95d71bd7cbc1f4279eddbe0104
parent69226e9c7d4e721c683bac7fef4c613a71a3508d
drm/amd/display: Add pp_smu null pointer check

res_pool->pp_smu may be NULL. Check before use

Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@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/calcs/dcn_calcs.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_clk_mgr.c