Re: [PATCH v2] ptp: ocp: Fix NULL dereference in Adva board SMA sysfs operations
From: patchwork-bot+netdevbpf
Date: Thu May 01 2025 - 10:10:07 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 29 Apr 2025 10:33:20 +0300 you wrote:
> From: Sagi Maimon <sagi.maimon@xxxxxxxxxx>
>
> On Adva boards, SMA sysfs store/get operations can call
> __handle_signal_outputs() or __handle_signal_inputs() while the `irig`
> and `dcf` pointers are uninitialized, leading to a NULL pointer
> dereference in __handle_signal() and causing a kernel crash. Adva boards
> don't use `irig` or `dcf` functionality, so add Adva-specific callbacks
> `ptp_ocp_sma_adva_set_outputs()` and `ptp_ocp_sma_adva_set_inputs()` that
> avoid invoking `irig` or `dcf` input/output routines.
>
> [...]
Here is the summary with links:
- [v2] ptp: ocp: Fix NULL dereference in Adva board SMA sysfs operations
https://git.kernel.org/netdev/net/c/e98386d79a23
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html