Received: by 10.223.164.202 with SMTP id h10csp942302wrb; Tue, 7 Nov 2017 18:07:03 -0800 (PST) X-Google-Smtp-Source: ABhQp+Sz6iB+a/i0ClrRymrSuyDr3cBi9ZfIkHeijkakXDesTzFS3kfvJvLwK56vnLCoaG5RLq4Y X-Received: by 10.99.121.14 with SMTP id u14mr695492pgc.420.1510106823812; Tue, 07 Nov 2017 18:07:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510106823; cv=none; d=google.com; s=arc-20160816; b=rTqCciQcQ3dvQP6U2BOfJ1T/M2oNZoXis9mqTDRFP4RhO//8PYH+LXOAwDv4xoGM0L 0R3dDXeZ4rnzG+l1S4fnJEHO8BRyKwPMs4DE33RzxSK6k+nT0SyMh3Fof28jyYA5SJFG 4jU2BdBP1SsSSCA4NvWetIgza7O3KrwVqQkp2rWkoWQOjV2iO6CUS3qRMuIziZRTbYQL Z9sEfYmgGI6i4AnqehyzYnU5DArncEuyikvRO12nObf4JMKOvOAMVr5g0azlbvpqI3p2 QnElsJN7iP4BG8wR7VERFpaYWBPKA5zx3OjRxbi49RJopKkTTmLSTMS1cN+lngsjUa2H Rtbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date:arc-authentication-results; bh=TK7UCKh8cXv3LQj7KY8e8/iI7snBhy4dng3ufY6u0kM=; b=IxYCU2MIPbBdo9XJB/xbPcFUs3iwWN4zj5rM4qAN6xbspEj7SNJhEIq+PF5mKF2dDZ 0VNjHJV1eGYR0C+qS2h4AJPBr1uGZLUQvmUmjmvzpPNOMipeHpwCW5dVLKG2nXFxF9+q ZCK2ZRg/747bHDghX7TRNu42WiJyuHgsnX6eBV3rJo+kgvwXCdlOC2607EnqaaCFeIcd w3x3v2gnZJNjbrAkaA9e2PU7PFeqRb51nG/4yMqZiksO2gUDbL6e/qe6LzqYIQu7XtRD cb/hweI8rPSsfnLTrcl9xiI2HMSBQLK3U9yekhvvH3HTPjrSEh+rePOp/RnN1p+xZIQ9 RKSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h9si2435803pgn.284.2017.11.07.18.06.51; Tue, 07 Nov 2017 18:07:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753469AbdKGRkD (ORCPT + 91 others); Tue, 7 Nov 2017 12:40:03 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:33264 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753171AbdKGRkA (ORCPT ); Tue, 7 Nov 2017 12:40:00 -0500 Received: (qmail 4122 invoked by uid 2102); 7 Nov 2017 12:39:58 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 7 Nov 2017 12:39:58 -0500 Date: Tue, 7 Nov 2017 12:39:58 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Colin King cc: Greg Kroah-Hartman , , , Subject: Re: [PATCH] usb: host: fix incorrect updating of offset In-Reply-To: <20171107164504.5920-1-colin.king@canonical.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Nov 2017, Colin King wrote: > From: Colin Ian King > > The variable temp is incorrectly being updated, instead it should > be offset otherwise the loop just reads the same capability value > and loops forever. Thanks to Alan Stern for pointing out the > correct fix to my original fix. Fix also cleans up clang warning: > > drivers/usb/host/ehci-dbg.c:840:4: warning: Value stored to 'temp' > is never read > > Fixes: d49d43174400 ("USB: misc ehci updates") > Signed-off-by: Colin Ian King > --- > drivers/usb/host/ehci-dbg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c > index 7fb21d01b3d0..3bd0b2273171 100644 > --- a/drivers/usb/host/ehci-dbg.c > +++ b/drivers/usb/host/ehci-dbg.c > @@ -838,7 +838,7 @@ static ssize_t fill_registers_buffer(struct debug_buffer *buf) > default: /* unknown */ > break; > } > - temp = (cap >> 8) & 0xff; > + offset = (cap >> 8) & 0xff; > } > } > #endif Acked-by: Alan Stern From 1583460291363647083@xxx Wed Nov 08 01:43:30 +0000 2017 X-GM-THRID: 1583460291363647083 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread