Skip to content

Commit 3f2e642

Browse files
committed
igc: cleanup PTP module if probe fails
jira LE-4694 Rebuild_History Non-Buildable kernel-6.12.0-55.43.1.el10_0 commit-author Christopher S M Hall <christopher.s.hall@intel.com> commit 1f02575 Make sure that the PTP module is cleaned up if the igc_probe() fails by calling igc_ptp_stop() on exit. Fixes: d89f884 ("igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support") Signed-off-by: Christopher S M Hall <christopher.s.hall@intel.com> Reviewed-by: Corinna Vinschen <vinschen@redhat.com> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Mor Bar-Gabay <morx.bar.gabay@intel.com> Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> (cherry picked from commit 1f02575) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 9e997fa commit 3f2e642

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/intel/igc/igc_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7169,6 +7169,7 @@ static int igc_probe(struct pci_dev *pdev,
71697169

71707170
err_register:
71717171
igc_release_hw_control(adapter);
7172+
igc_ptp_stop(adapter);
71727173
err_eeprom:
71737174
if (!igc_check_reset_block(hw))
71747175
igc_reset_phy(hw);

0 commit comments

Comments
 (0)