Re: [PATCH net] net: ethernet: i825xx: Fix dma_alloc_coherent() size

From: patchwork-bot+netdevbpf

Date: Thu Oct 08 2026 - 14:06:05 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Tue, 6 Oct 2026 16:32:40 +0200 you wrote:
> In sni_82596_probe(), the lp->dma buffer is allocated with
> dma_alloc_coherent() and with size sizeof(struct i596_dma), and possibly
> freed in the error path with the same size. However, in
> sni_82596_driver_remove(), the same buffer is freed but with size
> sizeof(struct i596_private). This error may leave the freed buffers
> mapped, leaking a resource and allowing the device to access freed
> memory.
>
> [...]

Here is the summary with links:
- [net] net: ethernet: i825xx: Fix dma_alloc_coherent() size
https://git.kernel.org/netdev/net-next/c/c16411fff03b

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html