diff options
author | 2021-07-22 11:03:52 +0800 | |
---|---|---|
committer | 2021-07-29 07:16:00 -1000 | |
commit | f728c4a9e8405caae69d4bc1232c54ff57b5d20f (patch) | |
tree | a8a92303b2fab1c7f718d1a48e1737b73d95abdd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm (diff) | |
download | linux-dev-f728c4a9e8405caae69d4bc1232c54ff57b5d20f.tar.xz linux-dev-f728c4a9e8405caae69d4bc1232c54ff57b5d20f.zip |
workqueue: Fix possible memory leaks in wq_numa_init()
In error handling branch "if (WARN_ON(node == NUMA_NO_NODE))", the
previously allocated memories are not released. Doing this before
allocating memory eliminates memory leaks.
tj: Note that the condition only occurs when the arch code is pretty broken
and the WARN_ON might as well be BUG_ON().
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions