]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Stop amdgpu_dm initialize when stream nums greater than 6
authorHersen Wu <hersenxs.wu@amd.com>
Wed, 24 Apr 2024 20:00:19 +0000 (16:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2024 20:18:16 +0000 (16:18 -0400)
commit84723eb6068c50610c5c0893980d230d7afa2105
tree22a34b1df717cdbb5a212c4065fcdefaa25358a1
parent6e41709eb1d9207d88e46026baf9cc850206b374
drm/amd/display: Stop amdgpu_dm initialize when stream nums greater than 6

[Why]
Coverity reports OVERRUN warning. Should abort amdgpu_dm
initialize.

[How]
Return failure to amdgpu_dm_init.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c