mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 01:43:18 +00:00
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 commitc6a502c229("mISDN: Fix memory leak in dsp_pipeline_build()"). Fixes:9a43816182("mISDN: Remove VLAs") Signed-off-by: Miaoqian Lin <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>