diff options
| author | Colin Ian King <[email protected]> | 2018-11-20 17:17:45 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-11-21 20:32:20 +0000 |
| commit | f8195e5910785218ed53bc7e522cb31dad26401b (patch) | |
| tree | 183cc2cc85c090a8bfed2558b7fa5e0e8115b9ce /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
| parent | drm/amd/display/amdgpu_dm/amdgpu_dm.c: Remove duplicate header (diff) | |
| download | kernel-f8195e5910785218ed53bc7e522cb31dad26401b.tar.gz kernel-f8195e5910785218ed53bc7e522cb31dad26401b.zip | |
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: e1e8a020c6b8 ("drm/amd/display: Add support for Freesync 2 HDR and Content to Display Mapping")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Leo Li <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions
