]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita14bc53192dde14b08d6c3004091c119f76575dc
tree27d95071ed33b211c7c220bd68a26f5a7fb844b4
parent1736cd12c5e473316f1273b58df621cdc34cad67
drm/amd/display: fix dereferencing possible ERR_PTR()

This patch fixes static checker warning caused by
"ca5f1c929f32: "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