Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934451AbYBGVAk (ORCPT ); Thu, 7 Feb 2008 16:00:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762706AbYBGUvu (ORCPT ); Thu, 7 Feb 2008 15:51:50 -0500 Received: from mx2.suse.de ([195.135.220.15]:38461 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762697AbYBGUvs (ORCPT ); Thu, 7 Feb 2008 15:51:48 -0500 Date: Thu, 7 Feb 2008 12:47:24 -0800 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org, linux-usb@vger.kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Jan Andersson , David Brownell Subject: [patch 20/45] USB: fix usbtest halt check on big endian systems Message-ID: <20080207204724.GU16389@suse.de> References: <20080207204118.202098927@mini.kroah.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="usb-fix-usbtest-halt-check-on-big-endian-systems.patch" In-Reply-To: <20080207204549.GA16389@suse.de> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1094 Lines: 35 2.6.24-stable review patch. If anyone has any objections, please let us know. ------------------ From: Jan Andersson 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. Signed-off-by: Jan Andersson Acked-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- drivers/usb/misc/usbtest.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c @@ -1151,6 +1151,7 @@ static int verify_halted (int ep, struct dbg ("ep %02x couldn't get halt status, %d", ep, retval); return retval; } + le16_to_cpus(&status); if (status != 1) { dbg ("ep %02x bogus status: %04x != 1", ep, status); return -EINVAL; -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/