]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
e1000e: Unroll PTP in probe error handling
authorMatt Vollrath <tactii@gmail.com>
Fri, 17 Apr 2026 00:53:36 +0000 (17:53 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Apr 2026 19:01:41 +0000 (12:01 -0700)
commitaa3f7fe409350857c25d050482a2eef2cfd69b58
tree4cf4dfbc4bbfee86bac5487155e7077a9dc2ef6a
parent496d9f91062fa07956702e0f234c5203f03a974d
e1000e: Unroll PTP in probe error handling

If probe fails after registering the PTP clock and its delayed work,
these resources must be released.

This was not an issue until a 2016 fix moved the e1000e_ptp_init() call
before the jump to err_register.

Fixes: aa524b66c5ef ("e1000e: don't modify SYSTIM registers during SIOCSHWTSTAMP ioctl")
Signed-off-by: Matt Vollrath <tactii@gmail.com>
Tested-by: Avigail Dahan <avigailx.dahan@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20260416-iwl-net-submission-2026-04-14-v2-12-686c33c9828d@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/e1000e/netdev.c