mirror_ubuntu-kernels/drivers/gpu/drm/amd
José Expósito f28cad86ad 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: 3f68c01be9 ("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>
2021-12-30 08:54:45 -05:00
..
acp
amdgpu drm/amdgpu: always reset the asic in suspend (v2) 2021-12-30 08:54:45 -05:00
amdkfd drm/amdkfd: correct sdma queue number in kfd device init (v3) 2021-12-30 08:54:43 -05:00
display drm/amd/display: fix dereference before NULL check 2021-12-30 08:54:45 -05:00
include drm/amdgpu: add support for IP discovery gc_info table v2 2021-12-16 14:08:20 -05:00
pm amdgpu/pm: Make sysfs pm attributes as read-only for VFs 2021-12-30 08:54:45 -05:00