lkml.org 
[lkml]   [2021]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] net: broadcom: bcm4908enet: Fix a double free in bcm4908_enet_dma_alloc
From
Date
Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Fri, 2 Apr 2021 10:40:19 -0700 you wrote:
> In bcm4908_enet_dma_alloc, if callee bcm4908_dma_alloc_buf_descs() failed,
> it will free the ring->cpu_addr by dma_free_coherent() and return error.
> Then bcm4908_enet_dma_free() will be called, and free the same cpu_addr
> by dma_free_coherent() again.
>
> My patch set ring->cpu_addr to NULL after it is freed in
> bcm4908_dma_alloc_buf_descs() to avoid the double free.
>
> [...]

Here is the summary with links:
- net: broadcom: bcm4908enet: Fix a double free in bcm4908_enet_dma_alloc
https://git.kernel.org/netdev/net/c/b25b343db052

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


\
 
 \ /
  Last update: 2021-04-07 01:22    [W:0.049 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site