diff options
author | Alex Hung <alex.hung@amd.com> | 2024-04-26 10:33:47 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-09-08 07:53:05 +0200 |
commit | 33e1ffc9d449e9fcfffb5cc7b42041cfe963ffb1 (patch) | |
tree | 0ad47249269544138d3b932e44f25163135f735e /drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c | |
parent | ca4e62eb0162af8d815578940fe96d5b5f230c71 (diff) |
drm/amd/display: Spinlock before reading event
[ Upstream commit ae13c8a5cff92015b9a3eb7cee65ebc75859487f ]
[WHY & HOW]
A read of acrtc_attach->base.state->event was not locked so moving it
inside the spinlock.
This fixes a LOCK_EVASION issue 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_encoders.c')
0 files changed, 0 insertions, 0 deletions