]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usx2y: Fix potential NULL pointer dereference
authorAditya Pakki <pakki001@umn.edu>
Mon, 4 Mar 2019 23:00:02 +0000 (17:00 -0600)
committerTakashi Iwai <tiwai@suse.de>
Wed, 13 Mar 2019 10:27:06 +0000 (11:27 +0100)
commitb7ccb3137cd70ad4d8a0389a26956453258dbd50
tree800f577e386fb939b01b35316db3a5b3adbf3f69
parentab1579b60c8498c15348182c12b884a039e3e536
ALSA: usx2y: Fix potential NULL pointer dereference

usb_alloc_urb() can fail due to kmalloc failure and push the error
upstream. Further this can cause a NULL pointer dereference in
init_pipe_urbs(). This patch avoids such a scenario.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usx2y/usb_stream.c