Re: [PATCH] usb: gadget: avoid using gadget after freed

2019-06-19 Thread Lianwei Wang
On Wed, Jun 19, 2019 at 10:55 PM Felipe Balbi wrote: > > > Hi, > > Lianwei Wang writes: > > > On Tue, Jun 18, 2019 at 11:21 PM Felipe Balbi wrote: > >> > >> > >> Hi, > >> > >> Lianwei Wang writes: > >> >> Lianwei Wang writes: > >> >> > On Mon, Jun 17, 2019 at 5:40 AM Felipe Balbi wrote: > >>

Re: [PATCH] usb: gadget: avoid using gadget after freed

2019-06-19 Thread Felipe Balbi
Hi, Lianwei Wang writes: > On Tue, Jun 18, 2019 at 11:21 PM Felipe Balbi wrote: >> >> >> Hi, >> >> Lianwei Wang writes: >> >> Lianwei Wang writes: >> >> > On Mon, Jun 17, 2019 at 5:40 AM Felipe Balbi wrote: >> >> >> >> >> >> Lianwei Wang writes: >> >> >> >> >> >> > The udc and gadget devi

Re: [PATCH] usb: gadget: avoid using gadget after freed

2019-06-19 Thread Lianwei Wang
On Tue, Jun 18, 2019 at 11:21 PM Felipe Balbi wrote: > > > Hi, > > Lianwei Wang writes: > >> Lianwei Wang writes: > >> > On Mon, Jun 17, 2019 at 5:40 AM Felipe Balbi wrote: > >> >> > >> >> Lianwei Wang writes: > >> >> > >> >> > The udc and gadget device will be deleted when udc device is > >>

Re: [PATCH] usb: gadget: avoid using gadget after freed

2019-06-18 Thread Felipe Balbi
Hi, Lianwei Wang writes: >> Lianwei Wang writes: >> > On Mon, Jun 17, 2019 at 5:40 AM Felipe Balbi wrote: >> >> >> >> Lianwei Wang writes: >> >> >> >> > The udc and gadget device will be deleted when udc device is >> >> > disconnected and the related function will be unbind with it. >> >> > >

Re: [PATCH] usb: gadget: avoid using gadget after freed

2019-06-18 Thread Lianwei Wang
On Tue, Jun 18, 2019 at 12:21 AM Felipe Balbi wrote: > > > Hi, > > Lianwei Wang writes: > > On Mon, Jun 17, 2019 at 5:40 AM Felipe Balbi wrote: > >> > >> Lianwei Wang writes: > >> > >> > The udc and gadget device will be deleted when udc device is > >> > disconnected and the related function wi

Re: [PATCH] usb: gadget: avoid using gadget after freed

2019-06-18 Thread Felipe Balbi
Hi, Lianwei Wang writes: > On Mon, Jun 17, 2019 at 5:40 AM Felipe Balbi wrote: >> >> Lianwei Wang writes: >> >> > The udc and gadget device will be deleted when udc device is >> > disconnected and the related function will be unbind with it. >> > >> > But if the configfs is not deleted, then t

Re: [PATCH] usb: gadget: avoid using gadget after freed

2019-06-17 Thread Lianwei Wang
On Mon, Jun 17, 2019 at 5:40 AM Felipe Balbi wrote: > > Lianwei Wang writes: > > > The udc and gadget device will be deleted when udc device is > > disconnected and the related function will be unbind with it. > > > > But if the configfs is not deleted, then the function object > > will be kept a

Re: [PATCH] usb: gadget: avoid using gadget after freed

2019-06-17 Thread Felipe Balbi
Lianwei Wang writes: > The udc and gadget device will be deleted when udc device is > disconnected and the related function will be unbind with it. > > But if the configfs is not deleted, then the function object > will be kept and the bound status is kept true. > > Then after udc device is conne