ALSA: mixer: fix deadlock in snd_mixer_oss_set_volume
authorPavel Skripkin <paskripkin@gmail.com>
Sun, 24 Oct 2021 14:03:15 +0000 (17:03 +0300)
committerTakashi Iwai <tiwai@suse.de>
Tue, 26 Oct 2021 05:59:40 +0000 (07:59 +0200)
commit3ab7992018455ac63c33e9b3eaa7264e293e40f4
treef2d9dc3b2b27a8bdfa6b597d05717f20c0d2450b
parent5fc462c3aaad601d5089fd5588a5799896a6937d
ALSA: mixer: fix deadlock in snd_mixer_oss_set_volume

In commit 411cef6adfb3 ("ALSA: mixer: oss: Fix racy access to slots")
added mutex protection in snd_mixer_oss_set_volume(). Second
mutex_lock() in same function looks like typo, fix it.

Reported-by: syzbot+ace149a75a9a0a399ac7@syzkaller.appspotmail.com
Fixes: 411cef6adfb3 ("ALSA: mixer: oss: Fix racy access to slots")
Cc: <stable@vger.kernel.org>
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Link: https://lore.kernel.org/r/20211024140315.16704-1-paskripkin@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/oss/mixer_oss.c