Re: [PATCH net] net: sparx5: skip ptp deinit if init was skipped
From: patchwork-bot+netdevbpf
Date: Tue Sep 29 2026 - 22:10:18 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Sun, 27 Sep 2026 21:45:42 -0700 you wrote:
> sparx5_ptp_init() returns early on the base lan969x variants
> because they do not have the SPX5_FEATURE_PTP flag. It also returns early
> when no "ptp" interrupt is described. Unbinding the driver then causes a
> NULL pointer dereference when cleaning up uninitialized tx_skbs queues:
>
> Unable to handle kernel NULL pointer dereference at virtual address
> 0000000000000008
> Call trace:
> skb_queue_purge_reason+0x68/0x120 (P)
> sparx5_ptp_deinit+0x64/0xc0
> mchp_sparx5_remove+0x38/0x70
> platform_remove+0x20/0x30
> device_remove+0x4c/0x80
>
> [...]
Here is the summary with links:
- [net] net: sparx5: skip ptp deinit if init was skipped
https://git.kernel.org/netdev/net/c/0d2c49915bc3
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html