]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire-motu: fix double unlocked 'motu->mutex'
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 8 Dec 2019 23:22:26 +0000 (08:22 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 Dec 2019 06:55:45 +0000 (07:55 +0100)
commita5010838807e6c721014d7888e5c447a46f48522
tree6f15d083a6a0a9cbbab123edacbf3ae1af2d1101
parent260a5e6d9f4ad8847bf7090f3276c08cbe34f43c
ALSA: firewire-motu: fix double unlocked 'motu->mutex'

Mutex is doubly unlocked in some error path of pcm.open. This commit fixes
ALSA firewire-motu driver in Linux kernel v5.5.

Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 191a5d9e776a ("ALSA: firewire-motu: use the same size of period for PCM substream in AMDTP streams")
Fixes: 1b712a8bf823 ("ALSA: firewire-motu: share PCM buffer size for both direction")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20191208232226.6685-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/motu/motu-pcm.c