Alexey Khoroshilov 4a98bc739d ASoC: rt5645: Fix deadlock in rt5645_jack_detect_work()
[ Upstream commit 6ef5d5b92f7117b324efaac72b3db27ae8bb3082 ]

There is a path in rt5645_jack_detect_work(), where rt5645->jd_mutex
is left locked forever. That may lead to deadlock
when rt5645_jack_detect_work() is called for the second time.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: cdba4301adda ("ASoC: rt5650: add mutex to avoid the jack detection failure")
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Link: https://lore.kernel.org/r/1707645514-21196-1-git-send-email-khoroshilov@ispras.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-23 08:42:23 +01:00
..
2021-03-25 09:04:04 +01:00
2021-05-14 09:50:38 +02:00
2023-02-22 12:55:53 +01:00
2023-09-19 12:20:04 +02:00
2020-01-07 22:29:38 +00:00
2018-04-26 12:44:15 +01:00
2020-01-10 13:31:49 +00:00
2020-09-10 12:49:44 +01:00
2020-05-07 13:18:04 +01:00
2020-05-07 13:18:04 +01:00
2019-07-26 13:10:09 +01:00
2018-05-18 11:20:11 +01:00
2018-06-01 12:05:30 +01:00
2020-07-20 15:34:29 +01:00
2020-10-02 21:05:29 +01:00
2020-05-04 19:23:59 +01:00
2023-01-14 10:16:21 +01:00
2020-05-26 10:55:37 +01:00