Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp269714lqd; Wed, 24 Apr 2024 01:28:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnB2fiUTVprYg+fMmONWlq2FvONr8o1ImGXfJWckyCz0gVksba1JNxnIepMcj/ARE2RGeqs8Tj6Sj71AhzQ8HNUvgbu1Mvluk48djHUw== X-Google-Smtp-Source: AGHT+IH7X5jJ5M8QVlr3jCD2KQlP02CCSL7DBk1XcPJGsX+TTKO9P96vRaZSMGXY7HNj1uVphoGN X-Received: by 2002:aa7:d710:0:b0:572:32e4:daca with SMTP id t16-20020aa7d710000000b0057232e4dacamr344260edq.25.1713947319422; Wed, 24 Apr 2024 01:28:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713947319; cv=pass; d=google.com; s=arc-20160816; b=LsbI99q4IG9QGxX1DdNYj4GavuhX0upZlzrN5Veux0khESwhy4nLxYU/aIroZOqGoX 3Un3OYaaYPtZ+xfvgEp+t3mi855cAxhT2UnafzZ7yMloOTMowYxETDPvJX91gU2SudiU ceieJ93IeLIUzbwXOLcHWeurAMldrRxiDKxQtJI+g1Q7t6hyuADfoMUKdgzj7KsQAu4d 2BY/RYt5QN+b8HRo7E7mSxWuqjx6on9kjhMwYvGJ9zURfN9KSM13fRIYYa5+YOsqqrqR qBa+WrLNA6z0B94qwVDtGDXJy+2stZtup+j32f9580rqOsZRTqIm5v/daOzencPTWO3z n5oQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=WDJAPZScJOMpBY9g8xP0a01blxFcMfNH5IknQ7zpWPM=; fh=HXWqlUOhRb37eP6YhsLCjB6ygr7VIUhuDDQ3C137+7E=; b=UCTttOXS6/V0IOHvj3kjgviwjcKwAt9E7Um+W2gKTVhT/uMy+ajkdQ4IjMyYfnRquP PgDMCOVwUtEMrtGFg4uuSEHkpOGsdi5cqusBLdTpgjZepsWEbi1DhB0m9Dxyo33wYItR mQqh/0ufGGIX5JreODN267aO0nGyMwlL3gEtnH4KAgskuKEqL/OGlpGZRYJwRmocHeu3 Ttkj4oEQ8hahQweByaOej0i842jkgL+r2i2g0WoMYFXYkFv64FNH3KK6iIkLygCg3pWF X1TLWYMPQYv+FQgfNw4rBAhsNgJ6l2+S4aEtLKKFrnv0mtvm+wr1fTvzZTlZijGkvVYP Vteg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qPaV+0N8; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-156543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r27-20020a50aadb000000b0056e3d6b4aa0si8114718edc.534.2024.04.24.01.28.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 01:28:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qPaV+0N8; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-156543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2BC211F22C8A for ; Wed, 24 Apr 2024 08:28:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 20396158A15; Wed, 24 Apr 2024 08:28:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="qPaV+0N8" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3C5C15885C; Wed, 24 Apr 2024 08:28:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713947306; cv=none; b=kA8lKIRmXIPUXpHqDTz2c62JV4f5qbQW74av/4ufZWQCUXqfoUdQL5dE6OiyuPvGzWKntXWzWQS2v4mreVt+r/vzTFtsP18TX0VbzYVKnefkJtQdFte/+TOVolum6dmmkdryx1KEvsNUoC0O5ckOKzQV02bLsBiXX9K4DhvUnHc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713947306; c=relaxed/simple; bh=9dKslndYqqRusj/yH1aNNs2IzvBLatzMNa4buer5ZeY=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=AElihs9P7PkH+0Zw/En0HYED219RQzdMh/i0zu4ezrzdsYl3CEnDBlX8h3iU8PsVU9LWjkojG2F2OKe48ObPrkmYUbg/nDXJbHvpCWoENtea9s+u95BMcjuSbdd9wcSMMFmpqUsPheDxtM5VnbWYGrRPW4JY3iliDOYK4e2ZPGY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=qPaV+0N8; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 43O8S717091864; Wed, 24 Apr 2024 03:28:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1713947287; bh=WDJAPZScJOMpBY9g8xP0a01blxFcMfNH5IknQ7zpWPM=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=qPaV+0N8Xb2YHqZoVP0dyxcZ1aPobSolNZcWccxaryHUnKPzlOOYa1DDOODOs4FLw LlLHgdVMmutEFgPoACFXuDZfSObjQeYf0gKpb6nGEMcv4Slrsdc7R/QdTUjeCWa/GY iRVmnmWVGG2nFSuF7CZOnK9kGSz4qTldhPrCi7dY= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 43O8S7df112708 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 24 Apr 2024 03:28:07 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 24 Apr 2024 03:28:06 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 24 Apr 2024 03:28:06 -0500 Received: from [10.24.69.25] (danish-tpc.dhcp.ti.com [10.24.69.25]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 43O8S14V096709; Wed, 24 Apr 2024 03:28:02 -0500 Message-ID: Date: Wed, 24 Apr 2024 13:58:00 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net] net: ti: icssg-prueth: Fix signedness bug in prueth_init_rx_chns() Content-Language: en-US To: Dan Carpenter , Roger Quadros CC: Roger Quadros , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Jan Kiszka , Diogo Ivo , Rob Herring , Grygorii Strashko , Vignesh Raghavendra , , , , References: <05282415-e7f4-42f3-99f8-32fde8f30936@moroto.mountain> From: MD Danish Anwar In-Reply-To: <05282415-e7f4-42f3-99f8-32fde8f30936@moroto.mountain> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 23/04/24 9:45 pm, Dan Carpenter wrote: > The rx_chn->irq[] array is unsigned int but it should be signed for the > error handling to work. Also if k3_udma_glue_rx_get_irq() returns zero > then we should return -ENXIO instead of success. > > Fixes: 128d5874c082 ("net: ti: icssg-prueth: Add ICSSG ethernet driver") > Signed-off-by: Dan Carpenter Reviewed-by: MD Danish Anwar -- Thanks and Regards, Danish