]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire-motu: fix unreleased lock warning in hwdep device
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 30 Jan 2023 14:15:40 +0000 (23:15 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:08 +0000 (11:28 +0100)
commit01a860e9579173124807ea83d888b1c09f3873ef
tree8ae96e9aa145b25b1bff53d67da44fb7ef1252d9
parent5dd2ab2e02df14b3919d2f683f3f07b0c15ea00f
ALSA: firewire-motu: fix unreleased lock warning in hwdep device

[ Upstream commit c7a806d9ce6757ff56078674916e53bd859f242d ]

Smatch static analysis tool detects that acquired lock is not released
in hwdep device when condition branch is passed due to no event. It is
unlikely to occur, while fulfilling is preferable for better coding.

Reported-by: Dan Carpenter <error27@gmail.com>
Fixes: b6b1ae4f84ee ("ALSA: firewire-motu: notify event for parameter change in register DSP model")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20230130141540.102854-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/firewire/motu/motu-hwdep.c