提交 f3bb7b29 编写于 作者: F Felipe Balbi

usb: gadget: function: uac2: prevent double ep disable

without this check, f_uac2 would try to disable
the same endpoint twice. Fix that.
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 703a303c
......@@ -951,6 +951,9 @@ free_ep(struct uac2_rtd_params *prm, struct usb_ep *ep)
struct snd_uac2_chip *uac2 = prm->uac2;
int i;
if (!prm->ep_enabled)
return;
prm->ep_enabled = false;
for (i = 0; i < USB_XFERS; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册