🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21165

Re: [PATCH net] bnxt_en: Fix auxiliary device leak on early probe failures

#21165
From: Simon Horman
Date: Mon, 23 Nov 2026 16:53
31 lines
9177 bytes
On Fri, Nov 20, 2026 at 05:07:17AM +0000, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 3 potential
> issue(s) to consider.
> 
> Critical: 0 · High: 0 · Medium: 2 · Low: 1
> 
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
> 
> - [Medium] In bnxt_init_one()
>   (drivers/net/ethernet/broadcom/bnxt/bnxt.c), a bnxt_pf_wq allocation…
> - [Medium] bnxt_en: skipped bnxt_clear_int_mode() on bnxt_pf_wq error in
>   bnxt_init_one()

The two issues above appear to be the same issue.  It does seem to be a
real leak, similar to the one addressed by the patch under review. Yet
strictly speaking different.

I'm indifferent as to weather it's fixed in a revised version of this patch
or as a follow-up.

> - [Low] The commit message lists the leaking failure points as
>   bnxt_set_dflt_rings(), bnxt_init_int_mode() and the bnxt_pf_wq…

This does seem nice, but I don't think it warrants a respin by itself.

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261123165340.GH31322@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369592-linux-kernel-netdev=dewy.ru
References: <20261118050716.3873167-1-lcy8047@gmail.com> <179515123717.3136.1891710789877841672@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369592-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] bnxt_en: Fix auxiliary device leak on early probe
 failures
Date: Mon, 23 Nov 2026 16:53:40 +0000
Organization: Usenet Network
Message-ID: <20261123165340.GH31322@horms.kernel.org>
References: <20261118050716.3873167-1-lcy8047@gmail.com>
 <179515123717.3136.1891710789877841672@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3932370"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:mui0BIxQt5c6rJM9cSYZR84F10c= sha256:9HdmFv3ZYO14VvOcjZR353hClut1qzyB8LgRxzM3iyw=
	sha1:0z0iC7+hu4qrayQAosmASMWvX1I= sha256:EnMkQ184BLLAWhiFqRgE91ojNejMtXOiq1auElqLb2g=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 9D33F125DC0; Mon, 23 Nov 2026 19:54:03 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 2ZBNJSkV0YWe;
	Mon, 23 Nov 2026 19:54:00 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369592-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 68BBF125DB9; Mon, 23 Nov 2026 19:53:52 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id EAB432A078; Mon, 23 Nov 2026 16:53:47 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795452827;
	b=oIYQhjUjj2VfAUkD6eUOA4BnZZqmYqEcDyqDdbpu4ZtiDhzpyEjOqHOmPu040uIvQ4zD
	 S4yMhuN62+PsOx3274lQ8eLmq96Z87rZjinCWjpXVgWbyinR4SeetaX/hXZFGelZjC4Md
	 o8+8QK2DLnqxSuUWmOoO/nKSbos/Efjb5ZoZYvlHMlKwtCnRr+6viPMyIp85zYbCNstgO
	 qzfRA6ew/ffxA3Rvr7Cbuog6ycHuZ3fVndTerdaQsl+1P0PTC8lqalqHUSWRTc7Qm2kKK
	 +hAOD3bIG9w9r56UmujWjhrgv36Ce68b65bbnX/mxx7ARpt/uP1dWpn+BCpMJgLXJ6w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795452827;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=drBF3Z3PQ0R8gQvpvkiEd1RU8Xl9TyEqLv9Q1GlRXlw=;
	b=W3yQUaDda0PJ32SZsF1+GIyHHN5gpuJb+F6el32qU4358ewM54TnLivY+bleoCC5Cxux
	 eg9p/G5JBaSCi5GLfsdtAt3fz6gGzT5syt0CqHYQQxp+dyQ+B4UGXdaPE+xruGABayfs0
	 S65kWTMcL5FwE1ZsAaMro5l+w8aGPm1uYtWqt4+9TcUJtSrJUBYlfnOhZ9+U+EApia8Lm
	 KwFoQBSheZlqpBqQSqaw1Bn3Tg2naz3wmuc9HTkXS/dhAuROUOM4EBQqIk2uLX2l7Tdoj
	 +E9PgjUcDOCFrkpjKMcZsoKBwh3OzaPhq/Pm0k2zQ5XnZQs+xytoheCcJdA74Bn9nAw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kWNAo7iT;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 5780C606A333;
	Mon, 23 Nov 2026 16:53:47 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kWNAo7iT
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795452826;
	b=2Fmv1aCT6Dmk/hgPt/GtbEP7T86gGUgURqDA5qUheo2BAh99o2zvaZcaV0sKFYwn+hqG
	 Wu/v7ZoOIezUgvb4IIRaKlbtvV66r63OZ1YVAQ/Y52BemzbNfecaWSZ9WsyiHAMYYVWne
	 ZY+spBxu3aYdVpPZxTGK/EjIBQ3N/n/ZJRv2HUpgubrc08DMKkbc5lv/RmCf7ZoQkKOOI
	 d5rQXngvkko3U/2nTJksAyNFSShwbbwC8o5Xz21klZPcxobqDw1k3/ec+gXanhYdL/RbH
	 XYvGXH5mi8DOXnLwYdC6RDAn2TvXnQvTP6m3s23WU5ZHji/ueITKT5ZPnVe6XZ5rrkg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795452826;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=drBF3Z3PQ0R8gQvpvkiEd1RU8Xl9TyEqLv9Q1GlRXlw=;
	b=OEocjBJdDTvN64imUFX5J2BYjopNdNTAZnSaCzro8MvdlA/9tLfRTNsMxUgsU8uUWiET
	 U9R387f4U7q3/qb8cDqJAqPgmT2Px6DaE3pepV6F69SyFARffm2wOuZT52lakxAF217oM
	 S5VucyNYnU3TQeiYCSGD6dbosB78qFOFCGmkiv+BTjRJitp0O8ruM5/uMvg6q2fIyPWl/
	 Oo/e/c5++shqKx0PWNLMbhMAoJ5rKP0G5aOZYT9mLZb2qiPbhyYnrsnjjeKkhQuXbiuaY
	 6yfWFJFpgrrmQ14xc982WV1OcUMHPpssBC743tFwsUsw/fQ8+KjYlama70BS43piRKQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kWNAo7iT;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7574A606A31E;
	Mon, 23 Nov 2026 16:53:46 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51A001F000CF;
	Mon, 23 Nov 2026 16:53:43 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795452825;
	bh=drBF3Z3PQ0R8gQvpvkiEd1RU8Xl9TyEqLv9Q1GlRXlw=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=kWNAo7iTk2MizLlzq6bTI6pK9ABv2SQVSrbQBR4A46kcXFppRsGaTwrWWEzSDO5en
	 YaKFoqoJ6WryyYf6vNmu7OVHhdktiaZio6JNRTHMM0Ha3evBiAKDkNETFs68Qjpfyo
	 2zK5R1WKOhuAvFG6PlUPNwziGkaugKBYjRjjeONPuVNh1RC5fDu6VfvUqZCOLkd/cf
	 iihftvajLKupwIW7J4EZDVISpP3f7FGT4n4IwCCeyZvSESMhrnDSio+ue4T4m709M4
	 uKoo4zFB8kmig0Y5Kdgk5sUSy+va1cFL517sYC9zSWDh82BvuKxiMl2/ZZxeFsXpmg
	 30nSpusG+Xbdw==
X-Cc: lcy8047@gmail.com, michael.chan@broadcom.com, pavan.chebbi@broadcom.com,
	andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, vikas.gupta@broadcom.com,
	andrew.gospodarek@broadcom.com, jacob.e.keller@intel.com,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <179515123717.3136.1891710789877841672@kernel.org>