提交 bb8070c2 编写于 作者: S Sebastian Andrzej Siewior 提交者: Felipe Balbi

usb: gadget: f_phonet: unlock in error case

Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 ad50c1b2
...@@ -434,6 +434,7 @@ static int pn_set_alt(struct usb_function *f, unsigned intf, unsigned alt) ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册