Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp328212iog; Fri, 24 Jun 2022 05:01:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tpvFXXqfDEcuOiMsDsTs0asE5uBFPBuuwEdVaQTw8QEKOY/XapnP796B5Ec53ztQsOVHHF X-Received: by 2002:a17:907:96a8:b0:711:56b8:f72b with SMTP id hd40-20020a17090796a800b0071156b8f72bmr13466272ejc.152.1656072084091; Fri, 24 Jun 2022 05:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656072084; cv=none; d=google.com; s=arc-20160816; b=FJVF95f++LsBxvASLikg9gmnbQmbMwyifKIPR9gTHphqiP1mvv9cKB4E+tNZlvksIJ fBz7VZ0B7KOrLY1A+nLoTOTeKMwAds3mJQ5e5JU1oWTzE+RvKLg/X5rNcbYr4vOIHDt8 oyVZo5+Rz7Q2Z2YKo/AhNYkya9i4CHCl7dIPPeIDuBo1zXWc52Qu2La5kwXMz9XVEA84 9ItXi8dqVeKk6c2h2HHbVYWqVZs5rk6R+ilJsvraNkW8hWfxHZOzWGFYbjNHLKYKCv0W P7ASC/9d684UyGtKxVIneL6mArVkDez9EitccwF2tLu0rObyyvSq3v3y3TmNpV3s9jk9 LlKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9tqZdFAf8v6QboW4Km9W4/rGYw7igBZc0lLqXoiJOtk=; b=TTu0yAx+dkS5jdwnXQD/0pjOs9z2iZLYzy3EdcOrEjfKY18jVkCd2PVC9mtdwGvGRo oBhsLgQQA/QhN2Ey6Z5EWMm9gMHwMZFPjT3rLNk5s3MFjNyWxCJ4mrpZs853/Ac4HsN1 IYDwLMPDoyXtoSPQss8ie8LN5/TH9gsFAjl2lAfRjPxRgxBkBu6SUfpmOAss+XXVkLAd pD5mjfWhIU3+WvHUuU6p52AZDNlxVxa+jTvm+EqXYlCOOhX+XAJl+14RLH7pTdDoUSwc 9n0dQQfeCKcD4w1qvTeHGJjDxParFVVAXbi/OXEFB7rum83alV8SuAMP0Vv3+7Zrgpoa A5kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lGpUqG7M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr16-20020a170907721000b00722dcea120csi2503759ejc.337.2022.06.24.05.00.55; Fri, 24 Jun 2022 05:01:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lGpUqG7M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231751AbiFXLpM (ORCPT + 99 others); Fri, 24 Jun 2022 07:45:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231713AbiFXLpH (ORCPT ); Fri, 24 Jun 2022 07:45:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 016967B36C; Fri, 24 Jun 2022 04:45:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 889376222A; Fri, 24 Jun 2022 11:45:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 627FBC34114; Fri, 24 Jun 2022 11:45:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656071105; bh=/2OHaS3MR1kb2k5L74fvco5RgmKK7foP/ilWbPMO+Es=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lGpUqG7MHtWZJ87v8qMZ8ChuH6aRq0Gij61Z4bVzYhrhQQ75WsPx7c69tzhoaYEa/ aE7zP6Dl4KJISHZSD46fhRnKFzXrLYqEaopQSxpqsXrgsHRUcnpFJ70meLA4RJo6rq 9ak1wnwEgWOwgHNYSlzSXlnmIkBDzsReYMuNiYRs= Date: Fri, 24 Jun 2022 13:42:02 +0200 From: Greg KH To: Jiapeng Chong Cc: neal_liu@aspeedtech.com, balbi@kernel.org, joel@jms.id.au, andrew@aj.id.au, sumit.semwal@linaro.org, christian.koenig@amd.com, linux-aspeed@lists.ozlabs.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org Subject: Re: [PATCH] usb: gadget: Fix unsigned comparison with less than zero Message-ID: References: <20220623084347.38207-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220623084347.38207-1-jiapeng.chong@linux.alibaba.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 23, 2022 at 04:43:47PM +0800, Jiapeng Chong wrote: > This was found by coccicheck: > > ./drivers/usb/gadget/udc/aspeed_udc.c:496:8-13: WARNING: Unsigned expression compared with zero: chunk >= 0. What does this mean? Where is the error? Please explain the reason for changes, not just the output of a random tool that you ran on the code. > Signed-off-by: Jiapeng Chong What commit does this fix? thanks, greg k-h