Skip to contentSkip to conversation

idpf: Fix error handling in idpf_vport_open()

PATCH In review Sreedevi Joshi 3 participants 3 messages Dec 2, 2025 – Dec 12, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 idpf: Fix error handling in idpf_vport_open()

Fix error handling to properly cleanup interrupts when idpf_vport_queue_ids_init() or idpf_rx_bufs_init_all() fail. Jump to 'intr_deinit' instead of 'queues_rel' to ensure interrupts are cleaned up before releasing other resources.

Fixes d4d558718266 ("idpf: initialize interrupts and enable vport")
---
 drivers/net/ethernet/intel/idpf/idpf_lib.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/idpf/idpf_lib.c +2 -2
index 89f3b46378c4..a5051a96f2ad 100644
@@ -1516,14 +1516,14 @@ static int idpf_vport_open(struct idpf_vport *vport, bool rtnl)
 	if (err) {
 		dev_err(&adapter->pdev->dev, "Failed to initialize queue registers for vport %u: %d\n",
 			vport->vport_id, err);
-		goto queues_rel;
+		goto intr_deinit;
 	}
 
 	err = idpf_rx_bufs_init_all(vport);
 	if (err) {
 		dev_err(&adapter->pdev->dev, "Failed to initialize RX buffers for vport %u: %d\n",
 			vport->vport_id, err);
-		goto queues_rel;
+		goto intr_deinit;
 	}
 
 	idpf_rx_init_buf_tail(vport);
Signature · 1 line
2.43.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Sreedevi Joshi

Fix error handling to properly cleanup interrupts when idpf_vport_queue_ids_init() or idpf_rx_bufs_init_all() fail. Jump to 'intr_deinit' instead of 'queues_rel' to ensure interrupts are cleaned up before releasing other resources.

Fixes d4d558718266 ("idpf: initialize interrupts and enable vport")
Tested-by
#2 lore raw
Quoted 19 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Simon Horman
Sent: Wednesday, December 3, 2025 11:21 AM
To: Joshi, Sreedevi <[email protected]>
Cc: [email protected]; [email protected]; Chittim, Madhu <[email protected]>; Loktionov, Aleksandr <[email protected]>
Subject: Re: [Intel-wired-lan] [PATCH iwl-net] idpf: Fix error handling in idpf_vport_open()

Quoted 5 lines · Sreedevi Joshi

Fix error handling to properly cleanup interrupts when idpf_vport_queue_ids_init() or idpf_rx_bufs_init_all() fail. Jump to 'intr_deinit' instead of 'queues_rel' to ensure interrupts are cleaned up before releasing other resources.

Quoted 6 lines
Quoted 4 lines
Fixes d4d558718266 ("idpf: initialize interrupts and enable vport")