Re: [PATCH] USB: UDC core: add device_del() call to error pathway

2015-01-19 Thread Peter Chen
On Fri, Jan 16, 2015 at 11:32:51AM -0500, Alan Stern wrote: > This patch fixes a bug in the error pathway of > usb_add_gadget_udc_release() in udc-core.c. If the udc registration > fails, the gadget registration is not fully undone; there's a > put_device(&gadget->dev) call but no device_del(). >

[PATCH] USB: UDC core: add device_del() call to error pathway

2015-01-16 Thread Alan Stern
This patch fixes a bug in the error pathway of usb_add_gadget_udc_release() in udc-core.c. If the udc registration fails, the gadget registration is not fully undone; there's a put_device(&gadget->dev) call but no device_del(). Signed-off-by: Alan Stern CC: --- [as1772] drivers/usb/gadget