diff options
author | Peter Chen <peter.chen@freescale.com> | 2011-12-31 14:56:47 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-07-20 13:19:45 +0800 |
commit | 24eb55424e4c2431db37242df3379c474f510722 (patch) | |
tree | 3f87e5f51a7b84f5eb4d0dd449a2103e571d64ac | |
parent | 965ab62dda330bd020e355bf6e689312d2b5d14f (diff) |
ENGR00171043 gadget-audio: Kernel panic after insert g_audio at second time
The reason is it does not call usb_ep_disable at gadget disable routine.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
-rw-r--r-- | drivers/usb/gadget/f_audio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_audio.c b/drivers/usb/gadget/f_audio.c index 325bfb4e090c..62e2122dbbe3 100644 --- a/drivers/usb/gadget/f_audio.c +++ b/drivers/usb/gadget/f_audio.c @@ -644,6 +644,10 @@ static int f_audio_set_alt(struct usb_function *f, unsigned intf, unsigned alt) static void f_audio_disable(struct usb_function *f) { + struct f_audio *audio = func_to_audio(f); + + usb_ep_disable(audio->out_ep); + return; } |