Messages in this thread | | | Subject | Re: [PATCH] net: broadcom: bcm4908enet: Fix a double free in bcm4908_enet_dma_alloc | From | patchwork-bot+netdevbpf@kernel ... | Date | Tue, 06 Apr 2021 23:20:09 +0000 |
| |
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
| |