summaryrefslogtreecommitdiff
path: root/drivers/bus
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2014-05-15 15:43:50 +0400
committerFelipe Balbi <balbi@ti.com>2014-05-15 19:30:31 +0400
commit1ade5d7e179170e3cf4780ba578ebb8cc7aa15ef (patch)
tree547b295da1c84b8afeb96753d6274ce8c5d83c17 /drivers/bus
parentf1c7e7108109bfa12ad4544dce5cdcbf3c6f0a0a (diff)
downloadlinux-1ade5d7e179170e3cf4780ba578ebb8cc7aa15ef.tar.xz
usb: gadget: f_uac2: don't queue new requests when shutting down
In some circumstances when g_audio is being unloaded there happens an endless loop in udc driver. It has happend on a board with s3c-hsotg. If there are requests in endpoint's queue, they are completed in a loop. But completing them might cause appending new requests to the queue. This patch causes agdev_iso_complete() to return immediately if request's status is -ESHUTDOWN. If it does not return immediately, then although the current request is removed from the queue, a new one is appended to the queue, so the above mentioned loop cannot end. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/bus')
0 files changed, 0 insertions, 0 deletions