Skip to content

Commit ad28d7c

Browse files
Wayne Linalexdeucher
authored andcommitted
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 <[email protected]> Acked-by: Zaeem Mohamed <[email protected]> Signed-off-by: Wayne Lin <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 9a57348 commit ad28d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
#define AMDGPU_DM_MAX_NUM_EDP 2
5252

53-
#define AMDGPU_DMUB_NOTIFICATION_MAX 5
53+
#define AMDGPU_DMUB_NOTIFICATION_MAX 6
5454

5555
#define HDMI_AMD_VENDOR_SPECIFIC_DATA_BLOCK_IEEE_REGISTRATION_ID 0x00001A
5656
#define AMD_VSDB_VERSION_3_FEATURECAP_REPLAYMODE 0x40

0 commit comments

Comments
 (0)