summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-03 14:35:13 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-03 14:35:13 -0700
commit0f79fd807a248d80211f9c5a5317ab9de21a9d59 (patch)
tree0e946e54b0ea1d516b6d416ce3a182601982cba0 /drivers
parente34d572a92687e628054ac51d5587848ddb67ab5 (diff)
parentc93e64e91248becd0edb8f01723dff9da890e2ab (diff)
downloadlinux-0f79fd807a248d80211f9c5a5317ab9de21a9d59.tar.gz
linux-0f79fd807a248d80211f9c5a5317ab9de21a9d59.tar.bz2
linux-0f79fd807a248d80211f9c5a5317ab9de21a9d59.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/udc/udc-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c
index 362ee8af5fce..89ed5e71a199 100644
--- a/drivers/usb/gadget/udc/udc-core.c
+++ b/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);