usb: dwc2/gadget: break infinite loop in endpoint disable code
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 9 Sep 2014 08:44:10 +0000 (10:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2014 17:17:38 +0000 (10:17 -0700)
commite0cbe595db72b037260bbda77106f6811a1ebb1d
treefee4ce2a199b5ab9a58f27e4838afcaeb378655c
parentca2c5ba80f823a38c4aae506e2f03c1afb076b0a
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>
drivers/usb/dwc2/gadget.c