xHCI: Cleanup isoc transfer ring when TD length mismatch found
commit2089fa6dd5ce37586408a28e5a4f446c62984f76
authorAndiry Xu <andiry.xu@amd.com>
Wed, 18 Jan 2012 09:47:12 +0000 (18 17:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:22:14 +0000 (3 09:22 -0800)
tree40b9e283a47b0bf60498e798e1b9a0bf3542c7a8
parent28d9b0f6c99f38e77087c69171fd8fd31201414b
xHCI: Cleanup isoc transfer ring when TD length mismatch found

commit cf840551a884360841bd3d3ce1ad0868ff0b759a upstream.

When a TD length mismatch is found during isoc TRB enqueue, it directly
returns -EINVAL. However, isoc transfer is partially enqueued at this time,
and the ring should be cleared.

This should be backported to kernels as old as 2.6.36, which contain the
commit 522989a27c7badb608155b1f1dea3487ed431f74 "xhci: Fix failed
enqueue in the middle of isoch TD."

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c