]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: control: Fix power_ref lock order for compat code, too
authorTakashi Iwai <tiwai@suse.de>
Thu, 8 Aug 2024 16:31:27 +0000 (18:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:00:42 +0000 (12:00 +0200)
commit28f4ec89a9a4fbfcc9750f4a994cf8aed7663f27
treebe7ea3a0a8f6ff0a52235e42820829762ae4742c
parent98ec87b3f90f9b4f3ca799805ef8002f308868e2
ALSA: control: Fix power_ref lock order for compat code, too

[ Upstream commit a1066453b5e49a28523f3ecbbfe4e06c6a29561c ]

In the previous change for swapping the power_ref and controls_rwsem
lock order, the code path for the compat layer was forgotten.
This patch covers the remaining code.

Fixes: fcc62b19104a ("ALSA: control: Take power_ref lock primarily")
Link: https://patch.msgid.link/20240808163128.20383-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/core/control_compat.c