Re: [PATCH net-next] ptp: ocp: replace __get_free_page() with kmalloc()

From
patchwork-bot+netdevbpf@kernel.org
Date
2026-11-12 02:00:08
Also in
linux-mm, lkml
Reply to
Mike Rapoport (Microsoft), 2026-11-08
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:

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

Thread (3 messages) 3 messages, 3 authors, last reply 1d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help