public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH iwl-net v2] e1000e: Unroll PTP in probe error handling
@ 2026-04-13  0:03 Matt Vollrath
  2026-04-14  8:55 ` [Intel-wired-lan] " Dawid Osuchowski
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Vollrath @ 2026-04-13  0:03 UTC (permalink / raw)
  To: intel-wired-lan; +Cc: Matt Vollrath, stable, Avigail Dahan

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>
---
 drivers/net/ethernet/intel/e1000e/netdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index 9befdacd6730..7ce0cc8ab8f4 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -7706,6 +7706,7 @@ static int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 err_register:
 	if (!(adapter->flags & FLAG_HAS_AMT))
 		e1000e_release_hw_control(adapter);
+	e1000e_ptp_remove(adapter);
 err_eeprom:
 	if (hw->phy.ops.check_reset_block && !hw->phy.ops.check_reset_block(hw))
 		e1000_phy_hw_reset(&adapter->hw);
-- 
2.43.0

Changes:
v2:
* Apply the correct Fixes tag
* Target iwl-net
* Cc stable


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Intel-wired-lan] [PATCH iwl-net v2] e1000e: Unroll PTP in probe error handling
  2026-04-13  0:03 [PATCH iwl-net v2] e1000e: Unroll PTP in probe error handling Matt Vollrath
@ 2026-04-14  8:55 ` Dawid Osuchowski
  2026-04-14 17:16   ` Matt Vollrath
  0 siblings, 1 reply; 3+ messages in thread
From: Dawid Osuchowski @ 2026-04-14  8:55 UTC (permalink / raw)
  To: Matt Vollrath, intel-wired-lan; +Cc: stable, Avigail Dahan

On 2026-04-13 2:03 AM, Matt Vollrath wrote:

Hey Matt,

Thanks for the patch!

Apologies but it seems I didn't explain fully where the changelog should 
go, same goes for the Cc: stable as it should be inserted into the 
commit msg as a tag, see example below.

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

Changelog should go _here_, not below the:

-- 
2.43.0

and should also have the --- afterwards. So using this patch submission 
as an example your commit msg + changelog should look like the following:

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")
Cc: stable@vger.kernel.org
Signed-off-by: Matt Vollrath <tactii@gmail.com>
Tested-by: Avigail Dahan <avigailx.dahan@intel.com>
---
Changes:
v2:
* Apply the correct Fixes tag
* Target iwl-net
* Cc stable
---

  drivers/net/ethernet/intel/e1000e/netdev.c | 1 +
  1 file changed, 1 insertion(+)

<snip of the rest of the diff/>

Once again sorry for not saying it more clearly before.

Best regards
~Dawid

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Intel-wired-lan] [PATCH iwl-net v2] e1000e: Unroll PTP in probe error handling
  2026-04-14  8:55 ` [Intel-wired-lan] " Dawid Osuchowski
@ 2026-04-14 17:16   ` Matt Vollrath
  0 siblings, 0 replies; 3+ messages in thread
From: Matt Vollrath @ 2026-04-14 17:16 UTC (permalink / raw)
  To: Dawid Osuchowski, intel-wired-lan; +Cc: stable, Avigail Dahan

On 4/14/26 04:55, Dawid Osuchowski wrote:
> Apologies but it seems I didn't explain fully where the changelog should go, same goes for the Cc: stable as it should be inserted into the commit msg as a tag, see example below.

Thanks Dawid, I had figured out the changelog after sending this by looking at other patches, but didn't see anyone else adding the Cc tag.
mv


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-14 17:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-13  0:03 [PATCH iwl-net v2] e1000e: Unroll PTP in probe error handling Matt Vollrath
2026-04-14  8:55 ` [Intel-wired-lan] " Dawid Osuchowski
2026-04-14 17:16   ` Matt Vollrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox