Re: [PATCH 1/3] usb: gadget: storage: Fix reference count if fsg_alloc_inst() failed

2018-06-26 Thread Michał Nazarewicz
2018-06-22 2:23 GMT+01:00 Jaejoong Kim : > Hi Michal, > > Could you check this patch? Sorry about long delay, I haven’t settled in my new place yet (which is also why I’m using Gmail). > 2018년 6월 14일 (목) 오후 11:55, Alan Stern 님이 작성: >> >> On Thu, 14 Jun 2018, Jaejoong Kim wrote: >> >> > The refere

Re: [PATCH 1/3] usb: gadget: storage: Fix reference count if fsg_alloc_inst() failed

2018-06-14 Thread Alan Stern
On Thu, 14 Jun 2018, Jaejoong Kim wrote: > The reference count is initialized in fsg_alloc_inst(). So if > fsg_alloc_inst() fails, we need to add kref_put() to free an > allocated memory. > > Signed-off-by: Jaejoong Kim > --- > drivers/usb/gadget/function/f_mass_storage.c | 1 + > 1 file change

[PATCH 1/3] usb: gadget: storage: Fix reference count if fsg_alloc_inst() failed

2018-06-14 Thread Jaejoong Kim
The reference count is initialized in fsg_alloc_inst(). So if fsg_alloc_inst() fails, we need to add kref_put() to free an allocated memory. Signed-off-by: Jaejoong Kim --- drivers/usb/gadget/function/f_mass_storage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/functio