aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net/hw/csum.py
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2025-08-28 08:14:57 +0000
committerJakub Kicinski <[email protected]>2025-08-30 02:19:39 +0000
commit0704a3da7ce50f972e898bbda88d2692a22922d9 (patch)
treeee3508904cf30b9d3c4680976bed2ef6de572a11 /tools/testing/selftests/drivers/net/hw/csum.py
parentptp: ocp: fix use-after-free bugs causing by ptp_ocp_watchdog (diff)
downloadkernel-0704a3da7ce50f972e898bbda88d2692a22922d9.tar.gz
kernel-0704a3da7ce50f972e898bbda88d2692a22922d9.zip
mISDN: Fix memory leak in dsp_hwec_enable()
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()"). Fixes: 9a4381618262 ("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]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/hw/csum.py')
0 files changed, 0 insertions, 0 deletions