Re: [PATCH] mISDN: Fix memory leak in dsp_hwec_enable()
From: patchwork-bot+netdevbpf
Date: Fri Aug 29 2025 - 22:30:09 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Thu, 28 Aug 2025 16:14:57 +0800 you wrote:
> dsp_hwec_enable() allocates dup pointer by kstrdup(arg),
> but then it updates dup variable by strsep(&dup, ",").
> As a result when it calls kfree(dup), the dup variable may be
> a modified pointer that no longer points to the original allocated
> memory, causing a memory leak.
>
> The issue is the same pattern as fixed in commit c6a502c22999
> ("mISDN: Fix memory leak in dsp_pipeline_build()").
>
> [...]
Here is the summary with links:
- mISDN: Fix memory leak in dsp_hwec_enable()
https://git.kernel.org/netdev/net/c/0704a3da7ce5
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html