Эх сурвалжийг харах

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 жил өмнө
parent
commit
0f79fd807a

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

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