]> err.no Git - linux-2.6/commit
usb: fix usbtest halt check on big endian systems
authorJan Andersson <jan@gaisler.com>
Tue, 8 Jan 2008 15:39:49 +0000 (16:39 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 22:34:46 +0000 (14:34 -0800)
commit6ce4560a39f72e45a273c652ee116f8b0fc6386f
treeceb4ea697b566f6ce903dde22441ba5a91b7a2d1
parent4b24f91c24e27ec7746549d1180b9cbd18f06000
usb: fix usbtest halt check on big endian systems

usbtest did not swap the received status information when checking for
a non-zero value and failed to discover halted endpoints on big endian
systems.

Cc: stable <stable@kernel.org>
Signed-off-by: Jan Andersson <jan@gaisler.com>
Acked-by: David Brownell <david-b@pacbell.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/usbtest.c