From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 95D4222089; Wed, 24 Jul 2024 18:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721847013; cv=none; b=BBWgfWZ4baiwupzJRammqpzQzKe4PFpDGfGNC4Rq1etzLQDQY5buV+2fooi3EbiYb2O4ve1HY0FT6ao2JKJZVcOCcn1JzocVozZefu5uIz5/quaDewpKrH57Zs0+6Yy1VYMdxLPpqYSgyE39ezohVktTfAIMGAZV9c28uHsNd48= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721847013; c=relaxed/simple; bh=YM6uAcYcUTmEs9sx5YeWtzGmC+FZL1c6liKeC0Q2yVY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=i//mOgY8mGPx7xeKspRNNM/HAJEZEZb0B82UwfMJLVvC/cBGq27TFLW4r5wovAQWIknNHnyevvAu6q+SuBRVdWQJZI8U957zxu33gIGQnPSZ1/2P+48r/v5IokFA+nJ5+JeEjFmDJfKJqB3wunGlfWWXQrMuXSftcKK/r/rIqJk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NMMjvUI8; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NMMjvUI8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DF91C32781; Wed, 24 Jul 2024 18:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721847013; bh=YM6uAcYcUTmEs9sx5YeWtzGmC+FZL1c6liKeC0Q2yVY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NMMjvUI8ho1nSA1R+Y6JdyEyB33/ArBG3L8dahyu36PtA/AGM7ZVlxtDVw9rphl8X 7YywP4kjObVjmMmENYPNGCZzw+9+qx0kZWO/z3dW9O9pwkZVDwiYOsNAGMMZYR0I/j AeYF94W4VPYnIS1OYDKIUi5My/PFuXgrYTRYLsu+bTRpjWAd/n75HXJf1jM1/byKcb 4dLDWohNiCl71S1vm+7i/q00Cb3XVTwb7P2D4dEXNBdiLwLHxPtymkSzDgEdQKiUvV NM7Bpa1N5iLpXb/AfAUS/rNRUHeXL6rMB6wITTc5HXFP9ZKo9uhNQ81iKQxYFcfG1B PjTm7wI4XUVUw== Date: Wed, 24 Jul 2024 19:50:08 +0100 From: Simon Horman To: Dan Carpenter Cc: Stefan Chulski , Marcin Wojtas , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH net] net: mvpp2: Don't re-use loop iterator Message-ID: <20240724185008.GH97837@kernel.org> References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Jul 24, 2024 at 11:06:56AM -0500, Dan Carpenter wrote: > This function has a nested loop. The problem is that both the inside > and outside loop use the same variable as an iterator. I found this > via static analysis so I'm not sure the impact. It could be that it > loops forever or, more likely, the loop exits early. > > Fixes: 3a616b92a9d1 ("net: mvpp2: Add TX flow control support for jumbo frames") > Signed-off-by: Dan Carpenter Reviewed-by: Simon Horman