projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
703a303
)
usb: gadget: function: uac2: prevent double ep disable
author
Felipe Balbi
<balbi@ti.com>
Mon, 29 Sep 2014 19:23:41 +0000
(14:23 -0500)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 20 Oct 2014 20:58:49 +0000
(15:58 -0500)
without this check, f_uac2 would try to disable
the same endpoint twice. Fix that.
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_uac2.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/function/f_uac2.c
b/drivers/usb/gadget/function/f_uac2.c
index fa511180c241507ca79c7b97212a12a5e4e841a4..1146f4d5f66de01d00313ee3b4878760139eae77 100644
(file)
--- a/
drivers/usb/gadget/function/f_uac2.c
+++ b/
drivers/usb/gadget/function/f_uac2.c
@@
-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++) {