1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/modules
Alex Hung 59d99deb33 drm/amd/display: Check index msg_id before read or write
[WHAT]
msg_id is used as an array index and it cannot be a negative value, and
therefore cannot be equal to MOD_HDCP_MESSAGE_ID_INVALID (-1).

[HOW]
Check whether msg_id is valid before reading and setting.

This fixes 4 OVERRUN issues reported by Coverity.

Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-04-26 17:22:43 -04:00
..
color drm/amd/display: Fix compiler warnings on high compiler warning levels 2024-04-09 22:05:04 -04:00
freesync drm/amd/display: Remove wrong signal from vrr calculation 2024-03-20 13:38:11 -04:00
hdcp drm/amd/display: Check index msg_id before read or write 2024-04-26 17:22:43 -04:00
inc drm/amd/display: revert Exit idle optimizations before HDCP execution 2024-03-20 13:36:29 -04:00
info_packet Revert "drm/amd/display: Fix sending VSC (+ colorimetry) packets for DP/eDP displays without PSR" 2024-03-22 15:52:12 -04:00
power drm/amd/display: Amend coasting vtotal for replay low hz 2024-03-20 13:12:58 -04:00
vmid drm/amd: Fix spelling typo in comments 2022-06-03 16:43:36 -04:00