diff options
| author | José Expósito <[email protected]> | 2021-12-26 11:16:14 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-12-30 13:54:45 +0000 |
| commit | f28cad86ada1a7345d7bbd379bef5a8babfa791b (patch) | |
| tree | 68edd9e12f9ca561af0a39975d00b8f518617896 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | drm/amdgpu: always reset the asic in suspend (v2) (diff) | |
| download | kernel-f28cad86ada1a7345d7bbd379bef5a8babfa791b.tar.gz kernel-f28cad86ada1a7345d7bbd379bef5a8babfa791b.zip | |
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 <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
