xhci: don't finish a TD if we get a short transfer event mid TD
authorMathias Nyman <mathias.nyman@linux.intel.com>
Mon, 12 Oct 2015 08:30:11 +0000 (11:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 07:04:18 +0000 (00:04 -0700)
commite210c422b6fdd2dc123bedc588f399aefd8bf9de
treec6a1726b446b212c4c4b3f7ffdd3858364f086fe
parent25cb62b76430a91cc6195f902e61c2cb84ade622
xhci: don't finish a TD if we get a short transfer event mid TD

If the difference is big enough between the bytes asked and received
in a bulk transfer we can get a short transfer event pointing to a TRB in
the middle of the TD. We don't want to handle the TD yet as we will anyway
receive a new event for the last TRB in the TD.

Hold off from finishing the TD and removing it from the list until we
receive an event for the last TRB in the TD

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c