* Re: [PATCH net] net: octeon_mgmt: Add cleanup operations for octeon_mgmt_init_phy()
@ 2026-11-23 10:32 netdev-bot+sinfo
0 siblings, 0 replies; 2+ messages in thread
From: netdev-bot+sinfo @ 2026-11-23 10:32 UTC (permalink / raw)
To: b.lane130; +Cc: andrew+netdev, davem, edumazet, kuba, pabeni, netdev
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH net] net: octeon_mgmt: Add cleanup operations for octeon_mgmt_init_phy()
@ 2026-11-23 10:30 b.lane130
0 siblings, 0 replies; 2+ messages in thread
From: b.lane130 @ 2026-11-23 10:30 UTC (permalink / raw)
To: andrew+netdev, davem, edumazet, kuba, pabeni; +Cc: netdev, Bruce Lane
From: Bruce Lane <b.lane130@outlook.com>
The error path in octeon_mgmt_open() misses the cleanup
operations for octeon_mgmt_init_phy() if request_irq()
fails. Add an error label and the corresponding cleanup
functions.
Fixes: eeae05aa2169 ("netdev: octeon_mgmt: Add support for 1Gig ports.")
Signed-off-by: Bruce Lane <b.lane130@outlook.com>
---
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c b/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
index bb72c0833721..514ee9a180f2 100644
--- a/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
+++ b/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
@@ -1073,7 +1073,7 @@ static int octeon_mgmt_open(struct net_device *netdev)
/* Read the PHY to find the mode of the interface. */
if (octeon_mgmt_init_phy(netdev)) {
dev_err(p->dev, "Cannot initialize PHY on MIX%d.\n", p->port);
- goto err_noirq;
+ goto err_nophy;
}
/* Set the mode of the interface, RGMII/MII. */
@@ -1223,7 +1223,12 @@ static int octeon_mgmt_open(struct net_device *netdev)
napi_enable(&p->napi);
return 0;
+
err_noirq:
+ if (netdev->phydev)
+ phy_disconnect(netdev->phydev);
+ netif_carrier_off(netdev);
+err_nophy:
octeon_mgmt_reset_hw(p);
dma_unmap_single(p->dev, p->rx_ring_handle,
ring_size_to_bytes(OCTEON_MGMT_RX_RING_SIZE),
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-23 10:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 10:32 [PATCH net] net: octeon_mgmt: Add cleanup operations for octeon_mgmt_init_phy() netdev-bot+sinfo
-- strict thread matches above, loose matches on Subject: below --
2026-11-23 10:30 b.lane130
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox