Re: [PATCH net-next] ptp: ocp: replace __get_free_page() with kmalloc()
From: patchwork-bot+netdevbpf
Date: Wed Nov 11 2026 - 21:06:17 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Sun, 08 Nov 2026 10:40:36 +0200 you wrote:
> ptp_ocp_summary_show() allocates a temporary buffer for formatting
> PTP OCP device summary information.
>
> This buffer can be allocated with kmalloc() as there's nothing special
> about it to go directly to the page allocator.
>
> kmalloc() provides a better API that does not require ugly casts and
> kfree() does not need to know the size of the freed object.
>
> [...]
Here is the summary with links:
- [net-next] ptp: ocp: replace __get_free_page() with kmalloc()
https://git.kernel.org/netdev/net-next/c/c88fd6989aea
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html