android_kernel_samsung_sm8650/sound
Krishna Kurapati 3b14c6f914 sound: usb: qmi: Prevent Null pointer deference due to connect/disconnect
Currently the sound driver uses qmi workqueues for any qmi request
sequences to execute, however while doing fast disconnect/connect
there is a possbility that the worker thread race between each other
which might lead to a scenario where in between the connect sequence
the disconnect might interfere and the endpoint might get freed.
This might lead to a null pointer deferences in the process used by
the hcd.

Fix this by making use of the chip-s usage_count to serialize these
processes. The disconnect in card drvier will wait for the usage_count
to be decreased to 0 in order to execute the disconnect sequences
which woudl make sure that the connect runs completely before disconnect.

Change-Id: I2a996a5bd6a451fdffdd3d09ba62770e3779f3f4
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
2023-09-28 12:12:05 +05:30
..
ac97 ALSA: ac97: Replace sprintf() with sysfs_emit() 2022-08-02 16:03:41 +02:00
aoa ALSA: aoa: Fix I2S device accounting 2022-10-27 08:53:08 +02:00
arm ALSA: arm: pxa: pxa2xx-ac97-lib: fix return value check of platform_get_irq() 2022-10-29 10:45:27 +02:00
atmel
core UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
drivers ALSA: mts64: fix possible null-ptr-defer in snd_mts64_interrupt 2022-12-31 13:32:22 +01:00
firewire ALSA: firewire-tascam: add missing unwind goto in snd_tscm_stream_start_duplex() 2023-04-20 12:35:05 +02:00
hda ALSA: hda: intel-dsp-config: add MTL PCI id 2023-03-22 13:34:00 +01:00
i2c ALSA: i2c/cs8427: fix iec958 mixer control deactivation 2023-04-20 12:35:05 +02:00
isa ALSA: sb: Use DIV_ROUND_UP() instead of open-coding it 2022-09-29 08:11:55 +02:00
mips
oss sound: oss: dmasound: remove software_input_volume declaration 2022-09-09 09:11:06 +02:00
parisc
pci ALSA: hda/realtek: fix mute/micmute LEDs for a HP ProBook 2023-04-26 14:28:38 +02:00
pcmcia ALSA: pdaudiocf: Drop superfluous GFP setup 2022-08-24 08:00:26 +02:00
ppc sound updates for 6.1-rc1 2022-10-05 12:02:07 -07:00
sh
soc ANDROID: Snap to android14-6.1-2023-06 2023-08-08 17:02:27 -07:00
sparc
spi sound:spi: remove reference to AVR32 in Atmel AT73C213 DAC driver 2022-08-03 11:11:26 +02:00
synth ALSA: emux: Avoid potential array out-of-bound in snd_emux_xg_control() 2023-02-14 19:11:41 +01:00
usb sound: usb: qmi: Prevent Null pointer deference due to connect/disconnect 2023-09-28 12:12:05 +05:30
virtio
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c