linux/sound/usb/qcom
Erick Karanja 48915162b5 ALSA: usb-audio: qcom: Adjust mutex unlock order
The mutexes qdev_mutex and chip->mutex are acquired in that order
throughout the driver. To preserve proper lock hierarchy and avoid
potential deadlocks, they must be released in the reverse
order of acquisition.

This change reorders the unlock sequence to first release chip->mutex
followed by qdev_mutex, ensuring consistency with the locking pattern.

[ fixed the code indentations and Fixes tag by tiwai ]

Fixes: 326bbc3482 ("ALSA: usb-audio: qcom: Introduce QC USB SND offloading support")
Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
Link: https://patch.msgid.link/20250721114554.1666104-1-karanja99erick@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2025-07-22 11:39:40 +02:00
..
Makefile ALSA: usb-audio: qcom: Add USB offload route kcontrol 2025-04-11 13:02:33 +02:00
mixer_usb_offload.c ALSA: usb-audio: qcom: Add USB offload route kcontrol 2025-04-11 13:02:33 +02:00
mixer_usb_offload.h ALSA: usb-audio: qcom: Add USB offload route kcontrol 2025-04-11 13:02:33 +02:00
qc_audio_offload.c ALSA: usb-audio: qcom: Adjust mutex unlock order 2025-07-22 11:39:40 +02:00
usb_audio_qmi_v01.c ALSA: qc_audio_offload: rename dma/iova/va/cpu/phys variables 2025-05-21 14:34:10 +02:00
usb_audio_qmi_v01.h ALSA: qc_audio_offload: rename dma/iova/va/cpu/phys variables 2025-05-21 14:34:10 +02:00