tmp_suning_uos_patched/drivers/isdn/mISDN
Alexey Khoroshilov a3d5fcc6cf mISDN: Fix memory leak in dsp_pipeline_build()
[ Upstream commit c6a502c2299941c8326d029cfc8a3bc8a4607ad5 ]

dsp_pipeline_build() allocates dup pointer by kstrdup(cfg),
but then it updates dup variable by strsep(&dup, "|").
As a result when it calls kfree(dup), the dup variable contains NULL.

Found by Linux Driver Verification project (linuxtesting.org) with SVACE.

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Fixes: 960366cf8d ("Add mISDN DSP")
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-03-16 14:15:56 +01:00
..
clock.c
core.c mISDN: change function names to avoid conflicts 2022-01-11 15:25:02 +01:00
core.h mISDN: change function names to avoid conflicts 2022-01-11 15:25:02 +01:00
dsp_audio.c
dsp_biquad.h
dsp_blowfish.c
dsp_cmx.c
dsp_core.c
dsp_dtmf.c
dsp_ecdis.h
dsp_hwec.c
dsp_hwec.h
dsp_pipeline.c mISDN: Fix memory leak in dsp_pipeline_build() 2022-03-16 14:15:56 +01:00
dsp_tones.c
dsp.h
fsm.c
fsm.h
hwchannel.c
Kconfig misdn: dsp: select CONFIG_BITREVERSE 2021-01-19 18:27:26 +01:00
l1oip_codec.c
l1oip_core.c
l1oip.h
layer1.c mISDN: change function names to avoid conflicts 2022-01-11 15:25:02 +01:00
layer1.h
layer2.c
layer2.h
Makefile
socket.c mISDN: Don't try to print a sockptr_t from debug logging code. 2020-07-24 16:36:13 -07:00
stack.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
tei.c
timerdev.c