linux/drivers/net/ethernet/intel/i40e
Matt Vollrath 678b713ece i40e: Cleanup PTP pins on probe failure
PTP pin structs are allocated early in probe, but never cleaned up.

Fix this by calling i40e_ptp_free_pins in the error path.

To support this, i40e_ptp_free_pins is added to the header and
pin_config is correctly nullified after being freed.

This has been an issue since i40e_ptp_alloc_pins was introduced.

Fixes: 1050713026 ("i40e: add support for PTP external synchronization clock")
Reported-by: Kohei Enju <kohei@enjuk.jp>
Cc: stable@vger.kernel.org
Signed-off-by: Matt Vollrath <tactii@gmail.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Kohei Enju <kohei@enjuk.jp>
Tested-by: Sunitha Mekala <sunithax.d.mekala@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20260506-jk-iwl-net-2026-05-04-v2-2-a5ea4dc837a9@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-05-08 16:01:08 -07:00
..
i40e_adminq_cmd.h i40e: fix Jumbo Frame support after iPXE boot 2025-09-09 10:29:53 -07:00
i40e_adminq.c i40e: use libie adminq descriptors 2025-07-24 09:26:13 -07:00
i40e_adminq.h i40e: use libie adminq descriptors 2025-07-24 09:26:13 -07:00
i40e_alloc.h
i40e_client.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
i40e_common.c i40e: fix Jumbo Frame support after iPXE boot 2025-09-09 10:29:53 -07:00
i40e_dcb_nl.c i40e: use libie_aq_str 2025-07-24 09:45:43 -07:00
i40e_dcb.c i40e: use libie adminq descriptors 2025-07-24 09:26:13 -07:00
i40e_dcb.h i40e: Remove unused i40e_dcb_hw_get_num_tc 2025-01-06 13:31:49 -08:00
i40e_ddp.c
i40e_debug.h
i40e_debugfs.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
i40e_devids.h
i40e_devlink.c devlink: pass extack through to devlink_param::get() 2025-11-20 19:01:22 -08:00
i40e_devlink.h
i40e_diag.c
i40e_diag.h
i40e_ethtool.c i40e: drop useless bitmap_weight() call in i40e_set_rxfh_fields() 2026-03-03 08:56:05 -08:00
i40e_hmc.c
i40e_hmc.h i40e: Add missing wordpart.h header 2026-03-03 08:56:05 -08:00
i40e_io.h
i40e_lan_hmc.c
i40e_lan_hmc.h
i40e_main.c i40e: Cleanup PTP pins on probe failure 2026-05-08 16:01:08 -07:00
i40e_nvm.c i40e: use libie_aq_str 2025-07-24 09:45:43 -07:00
i40e_prototype.h i40e: fix Jumbo Frame support after iPXE boot 2025-09-09 10:29:53 -07:00
i40e_ptp.c i40e: Cleanup PTP pins on probe failure 2026-05-08 16:01:08 -07:00
i40e_register.h
i40e_trace.h i40e: Fix preempt count leak in napi poll tracepoint 2026-02-25 11:43:57 -08:00
i40e_txrx_common.h
i40e_txrx.c i40e: fix registering XDP RxQ info 2026-03-05 08:02:04 -08:00
i40e_txrx.h net: intel: move RSS packet classifier types to libie 2025-06-09 09:56:18 -07:00
i40e_type.h i40e: use libie adminq descriptors 2025-07-24 09:26:13 -07:00
i40e_virtchnl_pf.c i40e: fix src IP mask checks and memcpy argument names in cloud filter 2026-03-10 13:02:45 -07:00
i40e_virtchnl_pf.h i40e: fix validation of VF state in get resources 2025-09-18 15:46:29 -07:00
i40e_xsk.c i40e: use generic unrolled_count() macro 2025-02-10 17:54:43 -08:00
i40e_xsk.h i40e: use generic unrolled_count() macro 2025-02-10 17:54:43 -08:00
i40e.h i40e: Cleanup PTP pins on probe failure 2026-05-08 16:01:08 -07:00
Makefile net: intel: Use *-y instead of *-objs in Makefile 2024-06-10 19:52:44 -07:00