]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Correct the defined value for AMDGPU_DMUB_NOTIFICATION_MAX
authorWayne Lin <wayne.lin@amd.com>
Mon, 27 May 2024 07:33:48 +0000 (15:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:17:16 +0000 (16:17 -0400)
commitad28d7c3d989fc5689581664653879d664da76f0
tree2d43a4a6cffaa2433969386ae928b623f52e190f
parent9a573481887e330b808e88005ffa142092c9fdbb
drm/amd/display: Correct the defined value for AMDGPU_DMUB_NOTIFICATION_MAX

[Why & How]
It actually exposes '6' types in enum dmub_notification_type. Not 5. Using smaller
number to create array dmub_callback & dmub_thread_offload has potential to access
item out of array bound. Fix it.

Reviewed-by: Jerry Zuo <jerry.zuo@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@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.h