]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: nau8824: Fix semaphore unbalance at error paths
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 Aug 2022 08:09:57 +0000 (10:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Sep 2022 12:16:59 +0000 (14:16 +0200)
commitc2ef959e33b2234bb9fc02e8120390fbb9ea8f20
tree333a9d3ecfffecdf22b23280f2160e58bb759ab9
parent107c6b60582c99820916b19183b5c855e2d60434
ASoC: nau8824: Fix semaphore unbalance at error paths

[ Upstream commit 5628560e90395d3812800a8e44a01c32ffa429ec ]

The semaphore of nau8824 wasn't properly unlocked at some error
handling code paths, hence this may result in the unbalance (and
potential lock-up).  Fix them to handle the semaphore up properly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20220823081000.2965-3-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/nau8824.c