Skip to content

Commit 1f02575

Browse files
christopher-s-hallanguy11
authored andcommitted
igc: cleanup PTP module if probe fails
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>
1 parent 26a3910 commit 1f02575

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

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

72327232
err_register:
72337233
igc_release_hw_control(adapter);
7234+
igc_ptp_stop(adapter);
72347235
err_eeprom:
72357236
if (!igc_check_reset_block(hw))
72367237
igc_reset_phy(hw);

0 commit comments

Comments
 (0)