USB: xhci: Check URB_SHORT_NOT_OK before setting short packet status.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 28 Aug 2009 21:28:15 +0000 (14:28 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:18 +0000 (06:46 -0700)
commit204970a4bb2f584afc430ae330cd44aee329cea4
tree4edca9077482c46c57b95a9bd2f6cdf55708e31e
parent99eb32db45061443ab7552b8fdceae68b90fde55
USB: xhci: Check URB_SHORT_NOT_OK before setting short packet status.

Make sure that the driver that submitted the URB considers a short packet
an error before setting -EREMOTEIO during a short control transfer.

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