Re: [PATCH] ALSA: usx2y: fix a memory leak bug

2019-04-29 Thread Wenwen Wang
On Mon, Apr 29, 2019 at 1:42 AM Takashi Iwai wrote: > > On Mon, 29 Apr 2019 07:50:11 +0200, > Wenwen Wang wrote: > > > > On Mon, Apr 29, 2019 at 12:36 AM Takashi Iwai wrote: > > > > > > On Sun, 28 Apr 2019 09:18:40 +0200, > > > Takashi Iwai wrote: > > > > > > > > On Sun, 28 Apr 2019 08:42:32

Re: [PATCH] ALSA: usx2y: fix a memory leak bug

2019-04-29 Thread Takashi Iwai
On Mon, 29 Apr 2019 07:50:11 +0200, Wenwen Wang wrote: > > On Mon, Apr 29, 2019 at 12:36 AM Takashi Iwai wrote: > > > > On Sun, 28 Apr 2019 09:18:40 +0200, > > Takashi Iwai wrote: > > > > > > On Sun, 28 Apr 2019 08:42:32 +0200, > > > Wenwen Wang wrote: > > > > > > > > In usX2Y_In04_init(), a new

Re: [PATCH] ALSA: usx2y: fix a memory leak bug

2019-04-28 Thread Wenwen Wang
On Mon, Apr 29, 2019 at 12:36 AM Takashi Iwai wrote: > > On Sun, 28 Apr 2019 09:18:40 +0200, > Takashi Iwai wrote: > > > > On Sun, 28 Apr 2019 08:42:32 +0200, > > Wenwen Wang wrote: > > > > > > In usX2Y_In04_init(), a new urb is firstly created through usb_alloc_urb() > > > and saved to

Re: [PATCH] ALSA: usx2y: fix a memory leak bug

2019-04-28 Thread Takashi Iwai
On Sun, 28 Apr 2019 09:18:40 +0200, Takashi Iwai wrote: > > On Sun, 28 Apr 2019 08:42:32 +0200, > Wenwen Wang wrote: > > > > In usX2Y_In04_init(), a new urb is firstly created through usb_alloc_urb() > > and saved to 'usX2Y->In04urb'. Then, a buffer is allocated through > > kmalloc() and saved

Re: [PATCH] ALSA: usx2y: fix a memory leak bug

2019-04-28 Thread Takashi Iwai
On Sun, 28 Apr 2019 08:42:32 +0200, Wenwen Wang wrote: > > In usX2Y_In04_init(), a new urb is firstly created through usb_alloc_urb() > and saved to 'usX2Y->In04urb'. Then, a buffer is allocated through > kmalloc() and saved to 'usX2Y->In04Buf'. After the urb is initialized, a > sanity check is