summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorJosé Expósito <jose.exposito89@gmail.com>2021-12-26 12:16:14 +0100
committerAlex Deucher <alexander.deucher@amd.com>2021-12-30 08:54:45 -0500
commitf28cad86ada1a7345d7bbd379bef5a8babfa791b (patch)
tree68edd9e12f9ca561af0a39975d00b8f518617896 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parent6dc8265f9803ccb7e5da804e01601f0c14f270e0 (diff)
drm/amd/display: fix dereference before NULL check
The "plane_state" pointer was access before checking if it was NULL. Avoid a possible NULL pointer dereference by accessing the plane address after the check. Addresses-Coverity-ID: 1493892 ("Dereference before null check") Fixes: 3f68c01be9a22 ("drm/amd/display: add cyan_skillfish display support") Signed-off-by: José Expósito <jose.exposito89@gmail.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions