summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorDmitry Fomin <fomindmitriyfoma@mail.ru>2023-02-25 21:43:21 +0300
committerTakashi Iwai <tiwai@suse.de>2023-03-03 14:29:18 +0100
commit951606a14a8901e3551fe4d8d3cedd73fe954ce1 (patch)
tree0e3f28251df8b9e5941bbcc4d57aebea58fe4608 /rust
parentea24b9953bcd3889f77a66e7f1d7e86e995dd9c3 (diff)
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 <fomindmitriyfoma@mail.ru> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20230225184322.6286-1-fomindmitriyfoma@mail.ru Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions