summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2024-04-16 16:47:42 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-09-08 07:53:05 +0200
commit0147505f08220c89b3a9c90eb608191276e263a8 (patch)
tree293c549bc0dfb71bba0c9bb8f9434065f35da15e /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
parentb36e9b3104c4ba0f2f5dd083dcf6159cb316c996 (diff)
drm/amd/display: Check msg_id before processing transcation
[ Upstream commit fa71face755e27dc44bc296416ebdf2c67163316 ] [WHY & HOW] HDCP_MESSAGE_ID_INVALID (-1) is not a valid msg_id nor is it a valid array index, and it needs checking before used. This fixes 4 OVERRUN issues reported by Coverity. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Acked-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions