android_kernel_motorola_sm6225/sound/usb/usx2y
Takashi Iwai db737117e9 ALSA: usx2y: Fix potential NULL dereference
commit 7686e3485253635c529cdd5f416fc640abaf076f upstream.

The error handling code in usX2Y_rate_set() may hit a potential NULL
dereference when an error occurs before allocating all us->urb[].
Add a proper NULL check for fixing the corner case.

Reported-by: Lin Yi <teroincn@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200420075529.27203-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-29 16:31:28 +02:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
us122l.c ALSA: usx2y: Change return type to vm_fault_t 2018-04-25 08:15:20 +02:00
us122l.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
usb_stream.c ALSA: usx2y: Fix invalid stream URBs 2017-11-06 15:03:38 +01:00
usb_stream.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
usbus428ctldefs.h
usbusx2y.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
usbusx2y.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
usbusx2yaudio.c ALSA: usx2y: Fix potential NULL dereference 2020-04-29 16:31:28 +02:00
usx2y.h
usX2Yhwdep.c ALSA: usx2y: Adjust indentation in snd_usX2Y_hwdep_dsp_status 2020-02-24 08:34:42 +01:00
usX2Yhwdep.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
usx2yhwdeppcm.c ALSA: usx2y: Change return type to vm_fault_t 2018-04-25 08:15:20 +02:00
usx2yhwdeppcm.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00