linux_dsm_epyc7002/drivers/gpu/drm/amd
Colin Ian King f8195e5910 drm/amd/display: fix dereference of pointer fs_params before it is null checked
Currently there are several instances of pointer fs_params being
dereferenced before fs_params is being null checked.  Fix this by
only dereferencing fs_params after the null check.

Detected by CoverityScan, CID#1475565 ("Dereference before null check")

Fixes: e1e8a020c6 ("drm/amd/display: Add support for Freesync 2 HDR and Content to Display Mapping")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-11-21 15:32:20 -05:00
..
acp drm/amdgpu: Remove wrapper layer of cgs irq handling 2018-03-21 14:36:58 -05:00
amdgpu drm/amd/amdgpu: Remove duplicate header 2018-11-21 15:32:19 -05:00
amdkfd drm/amdkfd: Workaround PASID missing in gfx9 interrupt payload under non HWS 2018-11-19 16:38:14 -05:00
display drm/amd/display: fix dereference of pointer fs_params before it is null checked 2018-11-21 15:32:20 -05:00
include drm/amdgpu: add DC feature mask module parameter 2018-11-07 17:05:58 -05:00
lib drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00
powerplay drm/amd/powerplay: Ratelimit all "was not implemented" messages 2018-11-19 15:27:44 -05:00