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>
Mon, 19 Mar 2018 16:23:23 +0000 (11:23 -0500)
commitcd2d6c92a8e39d7e50a5af9fcc67d07e6a89e91d
tree978792228fe443114c6309d8a399e68301c0f11c
parent219be9dda6137bc9759c449bbff5d4394fe73382
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