android_kernel_motorola_sm6225/sound
Pratham Pratap 3ecc1a5c87 sound: usb: Don't bail out if qmi_send_indication fails
Consider a scenario where ADSP SSR happened and USB headset
gets disconnected before ADSP is up then in uaudio_disconnect_cb,
qmi_send_indication will fail leading to return from the function.
Now the uaudio_qmi_bye_cb will get called since all clients from
the node are gone which in turn will call uaudio_qmi_disconnect_work.
This can lead to NULL pointer derefernce since snd_usb_audio got
freed and was accessed in uaudio_qmi_disconnect_work.

Fix this by not bailing out if qmi_send_indication which will
ensure that uaudio_qmi_disconnect_work will wait to be queued
until in_use is false.

Change-Id: Ie22fd0a8f4aa0e33b9aaf092b658476b8c47c199
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2019-11-21 19:42:13 +05:30
..
ac97 ALSA: ac97: Fix double free of ac97_codec_device 2019-07-31 07:27:11 +02:00
aoa
arm
atmel
core Merge android-4.19-q.70 (544e551) into msm-4.19 2019-09-09 00:00:41 -07:00
drivers ALSA: opl3: fix mismatch between snd_opl3_drum_switch definition and declaration 2019-04-20 09:15:56 +02:00
firewire ALSA: firewire-tascam: check intermediate state of clock status and retry 2019-10-05 13:10:00 +02:00
hda ALSA: hda: Flush interrupts on disabling 2019-10-05 13:09:33 +02:00
i2c ALSA: i2c: ak4xxx-adda: Fix a possible null pointer dereference in build_adc_controls() 2019-10-05 13:09:37 +02:00
isa ALSA: sb8: add a check for request_region 2019-04-20 09:15:55 +02:00
mips ALSA: pcm: Nuke snd_pcm_lib_mmap_vmalloc() 2018-07-18 08:24:29 +02:00
oss
parisc
pci ALSA: hda - Force runtime PM on Nvidia HDMI codecs 2019-10-29 09:19:45 +01:00
pcmcia Merge branch 'for-linus' into topic/virmidi 2018-07-29 22:39:29 +02:00
ppc powerpc/ps3: Set driver coherent_dma_mask 2018-07-20 12:50:37 +10:00
sh
soc Merge android-4.19-q.81 (9045ee1) into msm-4.19 2019-10-29 04:52:53 -07:00
sparc ALSA: sparc: Fix invalid snd_free_pages() at error path 2018-12-05 19:32:08 +01:00
spi
synth ALSA: emux: Fix potential Spectre v1 vulnerabilities 2019-01-09 17:38:36 +01:00
usb sound: usb: Don't bail out if qmi_send_indication fails 2019-11-21 19:42:13 +05:30
x86 ALSA: x86: Fix runtime PM for hdmi-lpe-audio 2019-03-27 14:14:41 +09:00
xen ALSA: xen: Use standard pcm_format_to_bits() for ALSA format bits 2018-07-27 09:05:34 +02:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c sound: fix a memory leak bug 2019-08-16 10:12:39 +02:00