]> git.baikalelectronics.ru Git - kernel.git/commit
xHCI: Cleanup isoc transfer ring when TD length mismatch found
authorAndiry Xu <andiry.xu@amd.com>
Wed, 18 Jan 2012 09:47:12 +0000 (17:47 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 25 Jan 2012 20:55:19 +0000 (12:55 -0800)
commit0a7071d7f6a43cd197e5bc85a3191c293c439379
tree9b7dfd0feb36b73060d81d38df7b7db88aefd3e9
parentb62c5a6151a67c60532c16c23130a424a2f6713f
xHCI: Cleanup isoc transfer ring when TD length mismatch found

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 c35fbf037b057e2fc5182feed55e67b71a3b2c1e "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>
Cc: stable@vger.kernel.org
drivers/usb/host/xhci-ring.c