net: macb: propagate macb_open() failure in macb_set_ringparam()
Subsystems (3)
PATCH 1/1 net: macb: propagate macb_open() failure in macb_set_ringparam()
macb_set_ringparam() silently ignores macb_open() failure after closing and reopening the interface, always returning 0. Propagate the error so callers know the interface failed to come back up.
--- drivers/net/ethernet/cadence/macb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/cadence/macb_main.c +1 -1
@@ -3754,7 +3754,7 @@ static int macb_set_ringparam(struct net_device *netdev, bp->tx_ring_size = new_tx_size;if (reset) -macb_open (bp->dev); +return macb_open (bp->dev);return 0 ; }
Signature · 1 line
2.51.0
Quoted 6 lines · Nicolai Buchwitz
macb_set_ringparam()silently ignoresmacb_open()failure after closing and reopening the interface, always returning 0. Propagate the error so callers know the interface failed to come back up.Suggested-by Breno Leitao <[email protected]>Signed-off-by Nicolai Buchwitz <[email protected]>
Jakub Kicinski
maintainerQuoted 3 lines · On Tue, 17 Mar 2026 21:22:29 +0100 Nicolai Buchwitz wrote:
macb_set_ringparam()silently ignoresmacb_open()failure after closing and reopening the interface, always returning 0. Propagate the error so callers know the interface failed to come back up.
Not sure it's worth it on its own, the driver will implode if the user tries to change the config again or bring the device up or down. The fact that error is nor propagated is the least of our worries.
Signature · 1 line
pw-bot: cr