sound: usb: usx2y: is it a null pointer deference in function usX2Y_rate_set?
亿一
teroincn at gmail.com
Mon Apr 20 09:49:06 CEST 2020
you can patch it and add a Reported by Lin Yi <teroincn at gmail.com>
if pleasure.~
thanks,
Lin Yi
Takashi Iwai <tiwai at suse.de> 于2020年4月20日周一 下午3:34写道:
>
> 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