diff options
author | Alex Hung <alex.hung@amd.com> | 2024-06-03 14:27:55 -0600 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-06-19 12:44:47 -0400 |
commit | 7cf24de30e8ab875abc92a81ff227ab9e5f4282e (patch) | |
tree | 96efc22fe3b735ceaa0e09be729517b3a1464357 /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | |
parent | 470f3760cfe6dd2ce66cf9159e65876f7eb28792 (diff) | |
download | linux-7cf24de30e8ab875abc92a81ff227ab9e5f4282e.tar.gz linux-7cf24de30e8ab875abc92a81ff227ab9e5f4282e.tar.bz2 linux-7cf24de30e8ab875abc92a81ff227ab9e5f4282e.zip |
drm/amd/display: Check pipe_ctx before it is used
resource_get_odm_slice_count and resource_get_otg_master_for_stream can
return null, and their returns must be checked before used.
This fixes 4 NULL_RETURNS issues reported by Coverity.
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions