Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp667479ybk; Fri, 15 May 2020 10:23:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwccCITJtb80mVpPU3Gsms5Rig93XZT7NyJTnJTlMsODc9vNy+U9ZcEYyC9LfL43DHsuUSg X-Received: by 2002:aa7:d35a:: with SMTP id m26mr3870124edr.25.1589563390781; Fri, 15 May 2020 10:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589563390; cv=none; d=google.com; s=arc-20160816; b=VVb+UkoRtzNKcksDfkd1ZWz1ecrLePijJRvTvR/CoHCe8f3YyO+f4ebyj2OJcruMKT r06SQPIO4Mh4Z2Dd8XxoBlAUUA5RP/pmQnaG2y3aJIf7pNxdGmlJ3GFSuKolVd+ZgBbP TM105vaWOtSvSKFvprdVTF9mE3buFDV/juYf+iSQhNAoo9KXPDHNdaFBLj3e0kXc5dst zmP6W753/amAwoKk7wUCbJ71MHHo2gDJz+2yySmZuuigH1yUWxuJ3sFVlgw/UQONSC2s 63C5JWWB3+VxPrrccLqwGrFUzBW7gPQlWum3Ua9U/WrQFrD193iGEDfjryYWr8MI/pGG 6FZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=7pehPEiHl1IbGXl3pyGSNmVVUoR2mSNuwDRYknW74ok=; b=PMrdwBK0TRfmf/YSK7GvaPjDvOnsVuPH0kJLJx+qX+C/pknTwPQcA8h7vWTf3Hn7eq vANXZRNZCdX8gwCA7aQTnZ0GXOg29XGNW257TCiEgdWhxDnX2ANs14rEjFd91aUkIeLA 8BsCopTkOxy4Rt1JiZkZCpi1qJny8EHYR/i4oSji+UwCdk+bPUrKnZshRS45ByOIUYIB /C/b2fSJaaYoghEdvfv6T04SUksa0BQdPJkeWkPOfRkUI+4kWEnyy5P1K9gKkqasDb6z /QZfqm7uRmuavaeukwbcrOrdmIHreu9pG5k1MVR7smk+DZEHJomdlCJkvOwKS8JL99Mv onSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si1627576edj.582.2020.05.15.10.22.46; Fri, 15 May 2020 10:23:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726144AbgEORVW (ORCPT + 99 others); Fri, 15 May 2020 13:21:22 -0400 Received: from netrider.rowland.org ([192.131.102.5]:37819 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726023AbgEORVW (ORCPT ); Fri, 15 May 2020 13:21:22 -0400 Received: (qmail 7055 invoked by uid 500); 15 May 2020 13:21:21 -0400 Date: Fri, 15 May 2020 13:21:21 -0400 From: Alan Stern To: Colin King Cc: Greg Kroah-Hartman , Zhang Shengju , Tang Bin , linux-usb@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] USB: EHCI: ehci-mv: fix less than zero comparison of an unsigned int Message-ID: <20200515172121.GA5498@rowland.harvard.edu> References: <20200515165453.104028-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515165453.104028-1-colin.king@canonical.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 15, 2020 at 05:54:53PM +0100, Colin King wrote: > From: Colin Ian King > > The comparison of hcd->irq to less than zero for an error check will > never be true because hcd->irq is an unsigned int. Fix this by > assigning the int retval to the return of platform_get_irq and checking > this for the -ve error condition and assigning hcd->irq to retval. > > Addresses-Coverity: ("Unsigned compared against 0") > Fixes: c856b4b0fdb5 ("USB: EHCI: ehci-mv: fix error handling in mv_ehci_probe()") > Signed-off-by: Colin Ian King > --- Thanks to Coverity for spotting this. Any reason why it didn't spot exactly the same mistake in the ohci-da8xx.c driver? Also, why wasn't the patch CC'ed for the stable series? Alan Stern