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: > >> >>

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: > >>

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 whe

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

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

2019-06-14 Thread Lianwei Wang
-off-by: Lianwei Wang --- drivers/usb/gadget/function/f_ecm.c| 10 ++ drivers/usb/gadget/function/f_eem.c| 10 ++ drivers/usb/gadget/function/f_ncm.c| 11 +++ drivers/usb/gadget/function/f_phonet.c | 2 +- drivers/usb/gadget/function/f_rndis.c | 2 +- drivers