Re: [PATCH] mISDN: Fix memory leak in dsp_hwec_enable()
From: patchwork-bot+netdevbpf@kernel.org
Date: 2025-08-30 02:29:59
Also in:
lkml
From: patchwork-bot+netdevbpf@kernel.org
Date: 2025-08-30 02:29:59
Also in:
lkml
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski [off-list ref]: 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