Files
linux/drivers/gpu/drm
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
..
2024-04-15 16:14:07 +02:00
2024-04-15 16:13:39 +02:00
2024-04-18 13:29:15 +03:00
2024-04-22 14:35:52 +10:00
2024-04-15 16:12:49 +02:00
2024-02-26 11:41:07 +01:00
2024-04-15 16:12:49 +02:00