diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2011-08-05 22:14:46 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-08-12 11:03:15 +0200 |
commit | bb8070c29ca87ac0aa24e04a1207cc932f62258f (patch) | |
tree | 0fd2184020461f5416851be2ddeca4af4b8b9a02 | |
parent | usb: musb: blackfin: include prefetch head file (diff) | |
download | linux-bb8070c29ca87ac0aa24e04a1207cc932f62258f.tar.xz linux-bb8070c29ca87ac0aa24e04a1207cc932f62258f.zip |
usb: gadget: f_phonet: unlock in error case
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/gadget/f_phonet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_phonet.c b/drivers/usb/gadget/f_phonet.c index 8f8d3f6cd89e..8f3eab1af885 100644 --- a/drivers/usb/gadget/f_phonet.c +++ b/drivers/usb/gadget/f_phonet.c @@ -434,6 +434,7 @@ static int pn_set_alt(struct usb_function *f, unsigned intf, unsigned alt) config_ep_by_speed(gadget, f, fp->out_ep)) { fp->in_ep->desc = NULL; fp->out_ep->desc = NULL; + spin_unlock(&port->lock); return -EINVAL; } usb_ep_enable(fp->out_ep); |