Skip to content

Commit c15065a

Browse files
christopher-s-hallgregkh
authored andcommitted
igc: cleanup PTP module if probe fails
[ Upstream 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 <[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]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 698182f commit c15065a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -7173,6 +7173,7 @@ static int igc_probe(struct pci_dev *pdev,
71737173

71747174
err_register:
71757175
igc_release_hw_control(adapter);
7176+
igc_ptp_stop(adapter);
71767177
err_eeprom:
71777178
if (!igc_check_reset_block(hw))
71787179
igc_reset_phy(hw);

0 commit comments

Comments
 (0)