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 <[email protected]> Reviewed-by: Corinna Vinschen <[email protected]> Signed-off-by: Jacob Keller <[email protected]> Tested-by: Mor Bar-Gabay <[email protected]> Acked-by: Vinicius Costa Gomes <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 26a3910 commit 1f02575

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
@@ -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)