Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp719693ybk; Fri, 15 May 2020 11:45:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9OpZuWCThQ663tm8WU9eG0zOC/fVZqVhaXCm2t2dyGMCjIjJyNAZL/T727s8e8jXCAhkz X-Received: by 2002:a17:906:584e:: with SMTP id h14mr4064221ejs.257.1589568302966; Fri, 15 May 2020 11:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589568302; cv=none; d=google.com; s=arc-20160816; b=Ajckue158PzAFnz6VfkXHf2x/Cr5ZvaugbkDSH25VUWzGC1JUUAAGPkZxDeeRuqZa9 d07wHqbdvqTOVc3eCuX4K+6ZteJ8kz4+I5c0PnMqzYtQi82QISsoGw/CB0DKt11Af3tn BN9ZCeBgn048wdZXsf3wfz6R5fo+RjlkX3sfxqjV8eV6ow/tQ/VFytLADW42pqQYEfSe 2jS93VJxIKGDvngbxToGcXD0cvFPRVhfcLh2yFytgipgOVtv7W7IjKqVwY01lj7j0fOE BTZbWNhPPG73oylOlgLCrfb+Yae8hvaJT553ROpdSsxmPHetCVE7yl1hTFSzfW7oSih8 PcCQ== 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=owylvD05czRrkMFwG4H/0E9dBrlwuNcTfz91jX3xQso=; b=NamGWaAGqPkUXU27uH0eH/6Ic7s2J5UpGtcss+sK6Ms7C+H2Rn4u3yU8fpeUkJGgx1 DlOdJ5bU427jSGOQLzjX+/712TuCSxiuvjaVe9OHfmJxE/uFmI/xxBohxg++hjzOPiK1 DS1byod0WQk6gpti3z96lxq60DrrcFQmN4vGmxBlhdiEVMU1v44cgqe4j/K3H9i076OA jO0e0uTEporeNqYYGFNti2K+wpIAYEaOOl646QZg0vspDV3nuABZc8yVEXlGt/jsOQ9U HqPEtdH5ibwGPr0j4xGsV0j4KU8Fr/v6gUpgdc4ghVZkdpIT/9ymID0U5VxBfRkWP998 VMcQ== 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 r18si1708834ejz.306.2020.05.15.11.44.39; Fri, 15 May 2020 11:45:02 -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 S1726304AbgEOSnC (ORCPT + 99 others); Fri, 15 May 2020 14:43:02 -0400 Received: from netrider.rowland.org ([192.131.102.5]:35469 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726238AbgEOSnC (ORCPT ); Fri, 15 May 2020 14:43:02 -0400 Received: (qmail 14280 invoked by uid 500); 15 May 2020 14:43:01 -0400 Date: Fri, 15 May 2020 14:43:01 -0400 From: Alan Stern To: Colin Ian 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: <20200515184301.GA13795@rowland.harvard.edu> References: <20200515165453.104028-1-colin.king@canonical.com> <20200515172121.GA5498@rowland.harvard.edu> <342e8fc0-c961-d9f0-f2d1-bd455ce06d86@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <342e8fc0-c961-d9f0-f2d1-bd455ce06d86@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 06:26:04PM +0100, Colin Ian King wrote: > On 15/05/2020 18:21, Alan Stern wrote: > > 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? > > No idea, it is curious that it can spot one error but miss another. > Sometimes I see these issues on the next scan, so it maybe the database > diff'ing is awry. > > > > > Also, why wasn't the patch CC'ed for the stable series? > > My bad on that. Human error Actually the question itself was my mistake. I didn't notice that your patch was a fix to something that was just merged and hadn't been CC'ed to stable. Alan Stern