Thread View: linux.kernel.netdev
2 messages
2 total messages
Started by Haoxiang Li
Sat, 28 Nov 2026 12:48
[PATCH] bnx2: Free temporary statistics on netdevice registration failure
Author: Haoxiang Li
Date: Sat, 28 Nov 2026 12:48
Date: Sat, 28 Nov 2026 12:48
25 lines
8936 bytes
8936 bytes
bnx2_init_board() allocates bp->temp_stats_blk. Free it
if register_netdev() fails after board initialization,
alongside the other board resources.
Fixes: 354fcd7774a0 ("bnx2: Save statistics during reset.")
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
---
drivers/net/ethernet/broadcom/bnx2.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c
index 39a62d5c1661..7c094f1b5664 100644
--- a/drivers/net/ethernet/broadcom/bnx2.c
+++ b/drivers/net/ethernet/broadcom/bnx2.c
@@ -8600,6 +8600,7 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
return 0;
error:
+ kfree(bp->temp_stats_blk);
pci_iounmap(pdev, bp->regview);
pci_release_regions(pdev);
pci_disable_device(pdev);
--
2.25.1
Re: [PATCH] bnx2: Free temporary statistics on netdevice registration failure
Author: netdev-bot+sinfo
Date: Sat, 28 Nov 2026 12:53
Date: Sat, 28 Nov 2026 12:53
27 lines
8846 bytes
8846 bytes
Hi! This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information: - How the issue was discovered, e.g. hit in production, hit during development, syzbot report, manual code inspection, LLM or static analysis tool scan. - Whether the issue was actually triggered, or is only theoretical (e.g. found by LLM and not proven at runtime). If it was triggered please include the symptoms, like the stack trace or kernel messages. - What hardware the change was tested on. For driver fixes please mention the device (and if relevant firmware version) used for testing, or say that the change was not tested on real hardware. Please do not repost the series just to address the above. Instead, reply to this email with the missing information, so that reviewers can take it into account. *IMPORTANT*: If you do repost (for other reasons) - please include the relevant info in the cover letter or commit messages. -- The evaluation is done by an LLM so it may be wrong, if you think that is the case please reply and explain.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads