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>
This commit is contained in:
parent
ad50c1b20f
commit
bb8070c29c
1 changed files with 1 additions and 0 deletions
|
@ -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)) {
|
config_ep_by_speed(gadget, f, fp->out_ep)) {
|
||||||
fp->in_ep->desc = NULL;
|
fp->in_ep->desc = NULL;
|
||||||
fp->out_ep->desc = NULL;
|
fp->out_ep->desc = NULL;
|
||||||
|
spin_unlock(&port->lock);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
usb_ep_enable(fp->out_ep);
|
usb_ep_enable(fp->out_ep);
|
||||||
|
|
Loading…
Add table
Reference in a new issue