1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/modules/hdcp
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
..
hdcp.c drm/amd/display: revert Exit idle optimizations before HDCP execution 2024-03-20 13:36:29 -04:00
hdcp.h drm-misc-next for 5.19: 2022-04-29 11:33:00 +10:00
hdcp1_execution.c drm/amd/display: Fix hdcp1_execution.c codestyle 2024-01-05 16:10:43 -05:00
hdcp1_transition.c drm/amd/display: add authentication_complete in hdcp output 2021-08-09 15:43:33 -04:00
hdcp2_execution.c drm/amd/display: Fix compiler warnings on high compiler warning levels 2024-04-09 22:05:04 -04:00
hdcp2_transition.c drm/amd/display: Fix monitor flash issue 2022-06-14 21:38:40 -04:00
hdcp_ddc.c drm/amd/display: Check index msg_id before read or write 2024-04-26 17:22:43 -04:00
hdcp_log.c drm/amd/display: add authentication_complete in hdcp output 2021-08-09 15:43:33 -04:00
hdcp_log.h drm/amd/display: Fix hdcp_log.h codestyle 2024-01-05 16:10:44 -05:00
hdcp_psp.c drm/amd/display: Return the correct HDCP error code 2024-03-20 13:12:59 -04:00
hdcp_psp.h drm/amd/display: Fix hdcp_psp.h codestyle 2024-01-05 16:10:44 -05:00
Makefile drm/amd/display: Add execution and transition states for HDCP2.2 2019-11-19 10:12:53 -05:00