Article View: linux.kernel.netdev
Article #12358Re: [PATCH] mlxsw: core_hwmon: unregister the hwmon device on event ops failure
From: patchwork-bot+netdevbpf
Date: Fri, 06 Nov 2026 23:10
Date: Fri, 06 Nov 2026 23:10
24 lines
8704 bytes
8704 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 3 Nov 2026 10:28:50 +0000 you wrote:
> If mlxsw_linecards_event_ops_register() fails, the error path calls
> hwmon_device_unregister() with line_cards[0].hwmon_dev, but that field
> is assigned only after the registration succeeds and is therefore
> still NULL. The hwmon device returned by
> hwmon_device_register_with_groups() is never unregistered, and the
> error path dereferences a NULL device.
>
> [...]
Here is the summary with links:
- mlxsw: core_hwmon: unregister the hwmon device on event ops failure
https://git.kernel.org/netdev/net-next/c/08f643794931
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179400660493.920475.6127092463819151784.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358216-linux-kernel-netdev=dewy.ruReferences:
<20261103102850.1340455-1-vulab@iscas.ac.cn>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358216-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH] mlxsw: core_hwmon: unregister the hwmon device on event ops failure Date: Fri, 06 Nov 2026 23:10:04 +0000 Organization: Usenet Network Message-ID: <179400660493.920475.6127092463819151784.git-patchwork-notify@kernel.org> References: <20261103102850.1340455-1-vulab@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3998104"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Kfx268a+FoT6DVj2wD0A9kjjUQQ= sha256:X3SI4tACiiOOWVN5t49bf5kvMGDtLY5CABxwG4Zivlg= sha1:0+gZgB+dNHNy0/kw1MBrDJQ5u2g= sha256:AcwGKN0H2u60zx1hrJifBHDZcrkDP6PXRT5H56x8Xb4= 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 E7281113371; Sat, 7 Nov 2026 02:10:26 +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 3ueNXo65APyA; Sat, 7 Nov 2026 02:10:22 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358216-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 ABBEC113349; Sat, 7 Nov 2026 02:10:13 +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 EE4DD2F6A9; Fri, 6 Nov 2026 23:10:07 +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=1794006607; b=I2rVJwNQI06pi7Aa1Yxsk4gdXa5DksDvrTAYdz4eaUrWjj+R1wL0Ma1v0mwqzJp572yQ nhbRP3wHI+MsSazEHoBb3++glhTu79W6MBapeAWrdo0h/gW3CQ4nInpvCJSUeOkRV79he KfWIAlUBd7n1H52HFv6eRSxUqmeAna0RQm3rVgdj8WfUUmBQgutOPNo4xj6vdX2TxJgDs BFXx8SnfIR6WAuEUipbB+f3sQWbrtCHjxH+TqYfmy9GgFVwJ/IgmqjgkPk1ELCryxUpKj CnYeJPSDvtYM9d63f9NNOFgmAT2QyjR5FKlkUP3pTCND0RvWjKp51IvJHZ8tR3uUFyA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794006607; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=JaXrBaVnyjZU1lKMK9ogNqtByExq8qXX8r4mH+X8o4k=; b=bYS6q842SD9QgtjJuuy7jLpzAK0qFd+m1KqbmGmCye8jdvZXFI6cST9/81rST7k/1N0B gMSznmqdkOt81QjSG7877ZHXnprQYGVc4eu7wl4R5d8cE1lSaKl4GdLVZAaEgxEVfUXzD NsoWCx0g5C7mHiOafj65UcpO80HveI6mm0JVSxcQeLnKWZ7FveTDxkxpacHX6vNBR1Ulh fWtgN4bZtId+MIQHWHO3NH++laBm4dX0wnvh1TB/wqm9ap+8Q8t88/ZwG1eoOAuwlGq98 NCx1UTauO0dEVoYetI5Yb5Ae+T4GvQqz8EE/+2EHv/lloFy0Unao7Iz1qj1/BgjqKBg== 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=ZC5S2snZ; 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 C1487606A333; Fri, 6 Nov 2026 23:10:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZC5S2snZ 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=1794006606; b=B6+ziC5WFW4IUPiRusbHtUn70J4hlztF9uhefArOJkP8C5wh1VopIKnveAc0geAPWq+h TorjguBfihyhe9Ert+tRCYrO27KSa3IjMUnjYmDffy/uBW+3wGzqgsaiwCbMXrH9GkSfy HoRAN4hnTtE9o4+5C+svc15VMHdPJ6j4bgaQW45I3TyT2iWoYCAC8EgqspgBMKZMLpaNo Ktv7VHTJyfDEceIHCkmhnXEwyNf2xfjNgQeNn9rKSOVQDIeRM8EkAdCl0NFafEEAO2ZhN kfS43nRILFnU+7rpJqVcrfVdMnUH1Lg0OF9fLSC0/evTMaCAj0RgwfcYT3tF9tJJyJw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794006606; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=JaXrBaVnyjZU1lKMK9ogNqtByExq8qXX8r4mH+X8o4k=; b=uFVKaknwjcG4JqlMyf6nMAoVjVtHLu5IStCtH1yaVXez5ItBAZ7LGA2e/hYKYXfS79NN jFHVe8Kul/+gLQqv+s2+VsqgXUKebPWTr6YzA6dGvjvAUZvlj3bTgZS3myLEsrJ9nMLRM Xytjli4oJ2oUJvbN7fEcrEhK4Gc4wj4m6LGlqINqiK9NeB3hBbBCUPdlc+iNq6sMuopc5 KvwlcS19uXTkzhtno9VVSICKVM01w7M4MfHyqWAfuhbOa2YqukDD1dJXJghYGh3TYipou +cy1f6fQ0AfUIyTH1OSPC2oDhfhYzqgOz63nwPxivhlVHpG29nqnQFP6/xwXFbkqvog== 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=ZC5S2snZ; 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 94BD0606A32C; Fri, 6 Nov 2026 23:10:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 299D11F0089F; Fri, 6 Nov 2026 23:10:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794006606; bh=JaXrBaVnyjZU1lKMK9ogNqtByExq8qXX8r4mH+X8o4k=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=ZC5S2snZp+7TLHFg0BYJBDFMLqvaNc3BYskD0REpRbZ9uLBSFso9nY2jjZ3oTiytQ zGn4wMVEKRqUD8aEMcI75rIzfEyhwJaJVeG0RM20ZIE48G193TTEiEsnwtB3aSoiSY xkcY8+QAHTZztYpfptexoRW9nxlWb3K+/yUdudoG4lHzCVIciCIPHCZKXotlbdExzY LhskzNGDw5CcwQLEMj4g5rmiHZr6hltranP3kWbo89+g0065sh9ZxApjDbsdvdy0iD YzHZmPWMhWU/MiO9x0IfOqqJkT6G/4Y/bXM22beW/UY8+8nZSXpXIBv/xDt+dns0j6 e2Jw7qw72783w== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 20FED3A55EC2; Fri, 6 Nov 2026 23:10:06 +0000 (UTC) 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: <20261103102850.1340455-1-vulab@iscas.ac.cn> X-Cc: idosch@nvidia.com, petrm@nvidia.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org