summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2024-11-12 19:20:23 +0300
committerPaul E. McKenney <paulmck@kernel.org>2024-11-15 03:09:51 +0300
commitf946cae86d088d02a2f9c0ae0bf8a80359d3f454 (patch)
tree57c59bb66311641766e43d793fa52426f5f18ae6 /tools/perf/scripts/python/stackcollapse.py
parent4788c861ad7e97d611e9b94596c896f5d0d072a6 (diff)
downloadlinux-f946cae86d088d02a2f9c0ae0bf8a80359d3f454.tar.xz
scftorture: Handle NULL argument passed to scf_add_to_free_list().
Dan reported that after the rework the newly introduced scf_add_to_free_list() may get a NULL pointer passed. This replaced kfree() which was fine with a NULL pointer but scf_add_to_free_list() isn't. Let scf_add_to_free_list() handle NULL pointer. Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/all/2375aa2c-3248-4ffa-b9b0-f0a24c50f237@stanley.mountain Fixes: 4788c861ad7e9 ("scftorture: Use a lock-less list to free memory.") Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions