diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2022-03-04 21:25:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-05 12:04:14 +0000 |
commit | c6a502c2299941c8326d029cfc8a3bc8a4607ad5 (patch) | |
tree | ceac43f3f5a0351f3724fb8960e6765de19647c9 /ipc/util.h | |
parent | a502a8f04097e038c3daa16c5202a9538116d563 (diff) | |
download | linux-stable-c6a502c2299941c8326d029cfc8a3bc8a4607ad5.tar.gz linux-stable-c6a502c2299941c8326d029cfc8a3bc8a4607ad5.tar.bz2 linux-stable-c6a502c2299941c8326d029cfc8a3bc8a4607ad5.zip |
mISDN: Fix memory leak in dsp_pipeline_build()
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: 960366cf8dbb ("Add mISDN DSP")
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc/util.h')
0 files changed, 0 insertions, 0 deletions