Browse Source

Merge tag 'fixes-for-v4.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-linus

Felipe writes:

usb: fixes for v4.2-rc6

Just one major fix which has been pending since January.

Somehow it fell through the cracks, but here it is. Basically,
this fixes a bug in udc-core when gadget registration fails.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Greg Kroah-Hartman 10 years ago
parent
commit
0f79fd807a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/usb/gadget/udc/udc-core.c

+ 1 - 0
drivers/usb/gadget/udc/udc-core.c

@@ -323,6 +323,7 @@ err4:
 
 err3:
 	put_device(&udc->dev);
+	device_del(&gadget->dev);
 
 err2:
 	put_device(&gadget->dev);