drm/amd/display: fix dereferencing possible ERR_PTR()
authorShirish S <shirish.s@amd.com>
Thu, 15 Mar 2018 10:31:00 +0000 (16:01 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Mar 2018 21:16:49 +0000 (16:16 -0500)
commit6f4969ef0a2e6257c9f839eff06e6718b55c6bcd
tree27d95071ed33b211c7c220bd68a26f5a7fb844b4
parent5e9a4f0873fd357bdec29b3b96667ef0cea64c46
drm/amd/display: fix dereferencing possible ERR_PTR()

This patch fixes static checker warning caused by
"36cc549d5986: "drm/amd/display: disable CRTCs with
NULL FB on their primary plane (V2)"

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c