]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: Spinlock before reading event
authorAlex Hung <alex.hung@amd.com>
Fri, 26 Apr 2024 16:33:47 +0000 (10:33 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2024 20:18:18 +0000 (16:18 -0400)
commitae13c8a5cff92015b9a3eb7cee65ebc75859487f
treebfc1af5d9934eb8809715bc453052f9b7b1e2633
parent1cbb91cb29a71f0a22f6909bf9c0ad43bd315bae
drm/amd/display: Spinlock before reading event

[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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c