]> 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>
Mon, 19 Mar 2018 16:23:23 +0000 (11:23 -0500)
commit8b5db9ecf3ea3d9fb3104f17bc96c26cce6e689d
tree978792228fe443114c6309d8a399e68301c0f11c
parentb1d15b3416b9f416009cd99d0e4db8a727a38167
drm/amd/display: fix dereferencing possible ERR_PTR()

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