android_kernel_motorola_sm6375/sound/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mayank Rana 8beb58f702 sound: usb: Add NULL check against udev with uaudio_dev_cleanup() API
uaudio_dev_cleanup() API can be called from ADSP SSR context (from work
context) and USB headset disconnect context. When USB headset is being
removed, driver sends disconnect notification to ADSP firmware and it can
be blocked for 10 seconds (timeout) before calling uaudio_dev_cleanup().
If this thread is block (possibly due to ADSP SSR), and in parallel driver
is handling ADSP SSR notification, driver is releasing all resource
including secondary event ring. Once above thread unblocks or timeout, it
goes try to release secondary USB event ring. As uaudio_dev_cleanup() is
already being called, and release secondary USB event ring, it shall see
udev->dev as NULL. Fix this issue by adding explicit check against udev
with uaudio_dev_cleanup() API.

Change-Id: I1e2e4a61dcbea4c0570ac97677bf74b453fac82c
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-08-12 15:52:27 -07:00
..
6fire
bcd2000 Linux 5.2-rc6 2019-06-26 12:39:34 +01:00
caiaq
hiface ALSA: hiface: fix multiple memory leak bugs 2019-08-07 12:20:00 +02:00
line6 ALSA: line6: Sync the pending work cancel at disconnection 2020-07-22 09:33:08 +02:00
misc treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 264 2019-06-05 17:30:28 +02:00
usx2y ALSA: usx2y: Fix potential NULL dereference 2020-04-29 16:33:15 +02:00
card.c This is the 5.4.53 stable release 2020-07-23 12:36:54 +02:00
card.h ANDROID: sound: usb: Add vendor's hooking interface 2020-07-13 17:24:54 +02:00
clock.c This is the 5.4.53 stable release 2020-07-23 12:36:54 +02:00
clock.h ALSA: usb-audio: Add clock validity quirk for Denon MC7000/MCX8000 2020-02-19 19:52:57 +01:00
debug.h
endpoint.c Revert "ALSA: usb-audio: Improve frames size computation" 2020-07-09 09:37:55 +02:00
endpoint.h Revert "ALSA: usb-audio: Improve frames size computation" 2020-07-09 09:37:55 +02:00
format.c ALSA: usb-audio: Filter out unsupported sample rates on Focusrite devices 2020-04-29 16:33:16 +02:00
format.h
helper.c sound: usb: Increase upper bound check for bInterval to 16 2020-06-10 12:46:56 -07:00
helper.h ALSA: usb-audio: More validations of descriptor units 2019-08-22 10:35:59 +02:00
Kconfig sound: usb: Add snapshot for usb audio qmi driver 2020-02-07 00:33:20 -08:00
Makefile sound: usb: Add snapshot for usb audio qmi driver 2020-02-07 00:33:20 -08:00
media.c
media.h
midi.c ALSA: usb-audio: Fix race against the error recovery URB submission 2020-07-22 09:33:09 +02:00
midi.h
mixer.c ALSA: usb-audio: Fix OOB access of mixer element list 2020-06-30 15:36:50 -04:00
mixer.h ALSA: usb-audio: Fix OOB access of mixer element list 2020-06-30 15:36:50 -04:00
mixer_maps.c ALSA: usb-audio: Quirks for Gigabyte TRX40 Aorus Master onboard audio 2020-06-03 08:21:24 +02:00
mixer_quirks.c ALSA: usb-audio: Fix OOB access of mixer element list 2020-06-30 15:36:50 -04:00
mixer_quirks.h
mixer_scarlett.c
mixer_scarlett.h
mixer_scarlett_gen2.c ALSA: usb-audio: Annotate endianess in Scarlett gen2 quirk 2020-02-11 04:35:11 -08:00
mixer_scarlett_gen2.h ALSA: usb-audio: Scarlett Gen 2 mixer interface 2019-07-28 17:47:48 +02:00
mixer_us16x08.c
mixer_us16x08.h
pcm.c Merge android11-5.4.56 (fcb0d3e) into msm-5.4 2020-08-06 17:12:45 -07:00
pcm.h ANDROID: sound: usb: Add helper APIs to enable audio stream 2019-12-06 12:33:37 -08:00
power.c ALSA: usb-audio: More validations of descriptor units 2019-08-22 10:35:59 +02:00
power.h
proc.c
proc.h
quirks-table.h ALSA: usb-audio: Add quirk for Focusrite Scarlett 2i2 2020-07-22 09:32:59 +02:00
quirks.c ALSA: usb-audio: Add registration quirk for Kingston HyperX Cloud Flight S 2020-07-22 09:33:00 +02:00
quirks.h ALSA: usb-audio: Rewrite registration quirk handling 2020-07-22 09:32:59 +02:00
stream.c ANDROID: sound: usb: Add helper APIs to enable audio stream 2019-12-06 12:33:37 -08:00
stream.h
usb_audio_qmi_svc.c sound: usb: Add NULL check against udev with uaudio_dev_cleanup() API 2020-08-12 15:52:27 -07:00
usb_audio_qmi_v01.c sound: usb: Add snapshot for usb audio qmi driver 2020-02-07 00:33:20 -08:00
usb_audio_qmi_v01.h sound: usb: Add snapshot for usb audio qmi driver 2020-02-07 00:33:20 -08:00
usbaudio.h ANDROID: sound: usb: Add vendor's hooking interface 2020-07-13 17:24:54 +02:00
validate.c ALSA: usb-audio: Fix endianess in descriptor validation 2020-02-11 04:35:10 -08:00