idpf: cancel mailbox work in error path
Subsystems (2)
PATCH v2 1/1 idpf: cancel mailbox work in error path
In idpf_vc_core_init, the mailbox work is queued on a mailbox workqueue but it is not cancelled on error. This results in a call trace when idpf_mbx_task tries to access the freed mailbox queue pointer. Fix it by cancelling the mailbox work in the error path.
---
v2:
- added 'Fixes' tag with the commit id this patch fixes
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c +1 -0
@@ -3140,6 +3140,7 @@ int idpf_vc_core_init(struct idpf_adapter *adapter) err_intr_req:cancel_delayed_work_sync (&adapter->serv_task); +cancel_delayed_work_sync (&adapter->mbx_task);idpf_vport_params_buf_rel (adapter); err_netdev_alloc:kfree (adapter->vports);
Signature · 6 lines
2.38.1 _______________________________________________ Intel-wired-lan mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
PATCH v2 1/1 idpf: cancel mailbox work in error path
Quoted 20 lines
-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Pavan Kumar Linga
Sent: Thursday, October 5, 2023 12:40 PM
To: [email protected]
Cc: Nguyen, Anthony L <[email protected]>; Linga, Pavan Kumar <[email protected]>; Drewek, Wojciech <[email protected]>; Tantilov, Emil S <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-next v2] idpf: cancel mailbox work in error pathIn
idpf_vc_core_init, the mailbox work is queued on a mailbox workqueue but it is not cancelled on error. This results in a call trace whenidpf_mbx_tasktries to access the freed mailbox queue pointer. Fix it by cancelling the mailbox work in the error path.Fixes 4930fbf419a7 ("idpf: add core init and interrupt request")Reviewed-by Wojciech Drewek <[email protected]>Signed-off-by Pavan Kumar Linga <[email protected]>
Quoted 7 lines
---
v2:
- added 'Fixes' tag with the commit id this patch fixesdrivers/net/ethernet/intel/idpf/idpf_virtchnl.c | 1 + 1 file changed, 1 insertion(+)
_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan