aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorAlex Hung <[email protected]>2024-04-26 16:02:55 +0000
committerAlex Deucher <[email protected]>2024-05-02 20:18:18 +0000
commitecda00059b14b95a5b84f3efc1c1f341e1fd7dbc (patch)
tree7fea19824eec1d21b6eca117d64686a8cc29caf8 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentdrm/amd/display: Avoid overflow dc_clk_table->entries by limit to MAX_NUM_DPM... (diff)
downloadkernel-ecda00059b14b95a5b84f3efc1c1f341e1fd7dbc.tar.gz
kernel-ecda00059b14b95a5b84f3efc1c1f341e1fd7dbc.zip
drm/amd/display: Skip plane when not found by stream id
[Why & How] dml_stream_idx will be -1 when it is not found. Check and skip in such a case as -1 is not a valid array index. This fixes a NEGATIVE_RETURNS issue reported by Coverity. Reviewed-by: Harry Wentland <[email protected]> Acked-by: Tom Chung <[email protected]> Signed-off-by: Alex Hung <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions