]> git.baikalelectronics.ru Git - kernel.git/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>
Wed, 28 Sep 2022 09:03:58 +0000 (11:03 +0200)
commit91136319ca158d5ce44c993aed190faf0a13c1fe
treeddbacfeabd11e36cb6d246cc9589de6a54c45de3
parent417dbb85fd7f879cb7e7567cefff139c4d8d50df
ASoC: nau8824: Fix semaphore unbalance at error paths

[ Upstream commit 509d6fc733883c2a52ad3947212c90e3fb3e9cfa ]

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