diff options
| author | Dmitry Fomin <[email protected]> | 2023-02-25 18:43:21 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2023-03-03 13:29:18 +0000 |
| commit | 951606a14a8901e3551fe4d8d3cedd73fe954ce1 (patch) | |
| tree | 0e3f28251df8b9e5941bbcc4d57aebea58fe4608 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | ALSA: hda/realtek: Add quirk for HP EliteDesk 800 G6 Tower PC (diff) | |
| download | kernel-951606a14a8901e3551fe4d8d3cedd73fe954ce1.tar.gz kernel-951606a14a8901e3551fe4d8d3cedd73fe954ce1.zip | |
ALSA: ice1712: Do not left ice->gpio_mutex locked in aureon_add_controls()
If snd_ctl_add() fails in aureon_add_controls(), it immediately returns
and leaves ice->gpio_mutex locked. ice->gpio_mutex locks in
snd_ice1712_save_gpio_status and unlocks in
snd_ice1712_restore_gpio_status(ice).
It seems that the mutex is required only for aureon_cs8415_get(),
so snd_ice1712_restore_gpio_status(ice) can be placed
just after that. Compile tested only.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Dmitry Fomin <[email protected]>
Cc: <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
