USB: xhci: Set -EREMOTEIO when xHC gives bad transfer length.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 28 Aug 2009 21:28:18 +0000 (14:28 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:18 +0000 (06:46 -0700)
commit2f697f6cbff155b3ce4053a50cdf00b5be4dda11
tree30072ed5d37493d913da510bf87d93647fd736a8
parent204970a4bb2f584afc430ae330cd44aee329cea4
USB: xhci: Set -EREMOTEIO when xHC gives bad transfer length.

The xHCI hardware reports the number of bytes untransferred for a given
transfer buffer.  If the hardware reports a bytes untransferred value
greater than the submitted buffer size, we want to play it safe and say no
data was transferred.  If the driver considers a short packet to be an
error, remember to set -EREMOTEIO.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-ring.c