Commit ac3b4f16 authored by Christopher S M Hall's avatar Christopher S M Hall Committed by Greg Kroah-Hartman
Browse files

igc: cleanup PTP module if probe fails



[ Upstream commit 1f025759 ]

Make sure that the PTP module is cleaned up if the igc_probe() fails by
calling igc_ptp_stop() on exit.

Fixes: d89f8841 ("igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support")
Signed-off-by: default avatarChristopher S M Hall <christopher.s.hall@intel.com>
Reviewed-by: default avatarCorinna Vinschen <vinschen@redhat.com>
Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Tested-by: default avatarMor Bar-Gabay <morx.bar.gabay@intel.com>
Acked-by: default avatarVinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 95ad4cf7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment