mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
drm/amd/display: Correct the defined value for AMDGPU_DMUB_NOTIFICATION_MAX
[ Upstream commit ad28d7c3d989fc5689581664653879d664da76f0 ] [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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
356fcce9cd
commit
9f404b0bc2
@@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
#define AMDGPU_DM_MAX_NUM_EDP 2
|
#define AMDGPU_DM_MAX_NUM_EDP 2
|
||||||
|
|
||||||
#define AMDGPU_DMUB_NOTIFICATION_MAX 5
|
#define AMDGPU_DMUB_NOTIFICATION_MAX 6
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#include "include/amdgpu_dal_power_if.h"
|
#include "include/amdgpu_dal_power_if.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user