idpf: Fix error handling in idpf_vport_open()
Subsystems (3)
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.
--- 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
@@ -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
Quoted 9 lines · Sreedevi Joshi
Fix error handling to properly cleanup interrupts when
idpf_vport_queue_ids_init()oridpf_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")Signed-off-by Sreedevi Joshi <[email protected]>Reviewed-by Madhu Chittim <[email protected]>Reviewed-by Aleksandr Loktionov <[email protected]>
Salin, Samuel
Tested-byQuoted 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 inidpf_vport_open()Quoted 5 lines · Sreedevi Joshi
Fix error handling to properly cleanup interrupts when
idpf_vport_queue_ids_init()oridpf_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")Signed-off-by Sreedevi Joshi <[email protected]>Reviewed-by Madhu Chittim <[email protected]>Reviewed-by Aleksandr Loktionov <[email protected]>Reviewed-by Simon Horman <[email protected]>