diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2014-09-09 10:44:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-09 10:17:38 -0700 |
commit | e0cbe595db72b037260bbda77106f6811a1ebb1d (patch) | |
tree | fee4ce2a199b5ab9a58f27e4838afcaeb378655c /drivers/usb | |
parent | ca2c5ba80f823a38c4aae506e2f03c1afb076b0a (diff) | |
download | op-kernel-dev-e0cbe595db72b037260bbda77106f6811a1ebb1d.zip op-kernel-dev-e0cbe595db72b037260bbda77106f6811a1ebb1d.tar.gz |
usb: dwc2/gadget: break infinite loop in endpoint disable code
This patch fixes possible freeze caused by infinite loop in interrupt
context.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Cc: stable <stable@vger.kernel.org> # 3.16
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/dwc2/gadget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index fd556e0..a451eef 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -1649,6 +1649,7 @@ static void s3c_hsotg_txfifo_flush(struct s3c_hsotg *hsotg, unsigned int idx) dev_err(hsotg->dev, "%s: timeout flushing fifo (GRSTCTL=%08x)\n", __func__, val); + break; } udelay(1); |