Skip to content

Commit b9afbcd

Browse files
christopher-s-halljfvogel
authored andcommitted
igc: cleanup PTP module if probe fails
[ Upstream commit 1f025759ba394dd53e434d2668cb0597886d9b69 ] 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]> (cherry picked from commit c15065acc1de52ed98db6662782fb3004fae602e) Signed-off-by: Jack Vogel <[email protected]>
1 parent 363b469 commit b9afbcd

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