Re: [PATCH] ALSA: usx2y: Fix potential NULL pointer dereference

2019-03-13 Thread Takashi Iwai
On Tue, 05 Mar 2019 00:00:02 +0100, Aditya Pakki wrote: > > 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 Applied, thanks.

[PATCH] ALSA: usx2y: Fix potential NULL pointer dereference

2019-03-04 Thread Aditya Pakki
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 --- sound/usb/usx2y/usb_stream.c | 5 + 1 file changed, 5 insertions(+) diff