]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: Add array index check for hdcp ddc access
authorHersen Wu <hersenxs.wu@amd.com>
Wed, 24 Apr 2024 14:09:31 +0000 (10:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2024 20:18:17 +0000 (16:18 -0400)
commit4e70c0f5251c25885c31ee84a31f99a01f7cf50e
tree6b1ee2d7433028661c846e6a287a23f0599ab3d1
parent5524fa301ba649f8cf00848f91468e0ba7e4f24c
drm/amd/display: Add array index check for hdcp ddc access

[Why]
Coverity reports OVERRUN warning. Do not check if array
index valid.

[How]
Check msg_id valid and valid array index.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c