sound: usb: usx2y: is it a null pointer deference in function usX2Y_rate_set?

Takashi Iwai tiwai at suse.de
Mon Apr 20 09:34:03 CEST 2020


On Mon, 20 Apr 2020 09:22:11 +0200,
亿一 wrote:
> 
> Hi, all:
>     when reviewing function usX2Y_rate_set, here may exist a NULL
> pointer deference if kmalloc_array failed or usb_alloc_urb failed,
> in cleanup,  we should judge whether us->urb[i] is NULL first.

Right, that's a missing check.  Would you submit the fix patch, or
shall I write quickly?


thanks,

Takashi


More information about the Alsa-devel mailing list