Message ID | 1604642069-20961-1-git-send-email-macpaul.lin@mediatek.com |
---|---|
State | New |
Headers | show |
Series | [RESEND,v4] usb: mtu3: fix panic in mtu3_gadget_stop() | expand |
diff --git a/drivers/usb/mtu3/mtu3_gadget.c b/drivers/usb/mtu3/mtu3_gadget.c index 1de5c9a..1ab3d3a 100644 --- a/drivers/usb/mtu3/mtu3_gadget.c +++ b/drivers/usb/mtu3/mtu3_gadget.c @@ -564,6 +564,7 @@ static int mtu3_gadget_stop(struct usb_gadget *g) spin_unlock_irqrestore(&mtu->lock, flags); + synchronize_irq(mtu->irq); return 0; }