linux-yocto/drivers/isdn
Miaoqian Lin aaa30b728f mISDN: Fix memory leak in dsp_hwec_enable()
[ Upstream commit 0704a3da7ce50f972e898bbda88d2692a22922d9 ]

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 c6a502c229
("mISDN: Fix memory leak in dsp_pipeline_build()").

Fixes: 9a43816182 ("mISDN: Remove VLAs")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250828081457.36061-1-linmq006@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-09 19:02:22 +02:00
..
capi [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
hardware mISDN: hfcpci: Fix warning when deleting uninitialized timer 2025-09-04 16:55:38 +02:00
mISDN mISDN: Fix memory leak in dsp_hwec_enable() 2025-09-09 19:02:22 +02:00
Kconfig
Makefile