Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1066963ybk; Fri, 15 May 2020 23:33:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv7Y7ZepVVDGq78rUzJN3h8XJWXGxs1bMaal6TH7WNkU8K72cMKPfvwy+Z8pz2lZPzA1ME X-Received: by 2002:a17:906:74c:: with SMTP id z12mr6509306ejb.87.1589610810883; Fri, 15 May 2020 23:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589610810; cv=none; d=google.com; s=arc-20160816; b=FhbdIOiQ94A+muoL/JQqFpQJuoJ3pHE4HrZkLKDPDw80JQv029nCwk+19qz4wwAZjz kqWC49ExRsic09C9AAPpTV4VrYGW426cQuUJ9Whb7ZmKWGsyzVtJR+HHB94v4q0/pNMC cEHwB8YMPovaRCzMCa8RB0J5rPEE+GmyKQ1BCaBsDhJUMcAFpmKtEmud3bzBxBBU/Vh1 6MAad10cmWnDEqD+zaPWaIZNONmKcDChe5aB5Reswbcd6KEKVvzg+uYhK2NZ6rI68P2D xbPwBphUt4YRAUibU0jAzq4i/lvTGDuwPak9oUAeCFW4H97J9MBB6TagXgs9DgNFPqRm yQRA== 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 :dkim-signature; bh=wZzwsQUQQhTVXsU3PCghB60eENk5ufzsNLJ/CiQ/Xsk=; b=ZIgcZDb/rUj7Q+APxBedUlCu0NwOU/t1AT1JdFIK2JacjxcRyhFKdZP3dZIa3u7Amd UNuvVdIiMIeJ7v/xpwWuvl66+8u6aSjW1BvbJfuqUNTfHm1Zq9NGmevOFvaBJp8xAjxN QDzNzSkvagV4BT7I5Yf06McnNr3vA1coFxdoOOU34663nX3xKuYe+DkqKL1W8ajTIMKI e0JBzH6X0rRG7RrwZFNGjqmuMl+4ww2DOLazzY58ZpSeNRCjqGu+yWGbFVd/Wu0PE/0U 1rrKIUebPsG79ApNcJJ62jiMpILXKK9eVA7JWimWevCvDQ+S4S4V+CLwXRmzYjy7HlJ4 E0BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VmrF0GLw; 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 i35si2964418edd.61.2020.05.15.23.33.07; Fri, 15 May 2020 23:33:30 -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; dkim=pass header.i=@kernel.org header.s=default header.b=VmrF0GLw; 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 S1726462AbgEPGas (ORCPT + 99 others); Sat, 16 May 2020 02:30:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:54264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbgEPGar (ORCPT ); Sat, 16 May 2020 02:30:47 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2857220709; Sat, 16 May 2020 06:30:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589610647; bh=UXpMFqDhSUuBlI+ewSvHUDOfs8oDzhZM8CpVo/0bilU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VmrF0GLwCiDqTIscbzq8YKik1hRdOVr9kPUwnqxoJxkS6CVQgSIBEc3eHhFSicJN+ d16AI29073E01fxwd7ZFQHUoP1RIORuGRTPEfLN/13cfidGXLtLZ8FjH8y7yypLa4c uhBBT44BY1fvzqiVAeDpH580dWMl/Avdwt0LqTf0= Date: Sat, 16 May 2020 08:30:45 +0200 From: Greg Kroah-Hartman To: Alan Stern Cc: Colin King , 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: <20200516063045.GA3846431@kroah.com> References: <20200515165453.104028-1-colin.king@canonical.com> <20200515172121.GA5498@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515172121.GA5498@rowland.harvard.edu> 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 01:21:21PM -0400, 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? I think Coverity only runs on a limited kernel configuration and does not build everything :(