USB: xhci: Check URB_SHORT_NOT_OK before setting short packet status.
commitff17e475b70b0168aa89e8726679bfedd044b998
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 28 Aug 2009 21:28:15 +0000 (28 14:28 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:32:52 +0000 (5 09:32 -0700)
tree4ff0e0e26a0f83df31306c75110e8fd620698423
parent1eb1b69f40b9ee5f5645109f380be78daf8e9ddd
USB: xhci: Check URB_SHORT_NOT_OK before setting short packet status.

commit 204970a4bb2f584afc430ae330cd44aee329cea4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-ring.c