summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@cmpxchg.org>2016-06-17 12:23:59 -0400
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:51:03 +0300
commitbb21941ae247eaa6f7d744f4e3821048b98cf226 (patch)
tree072f8a53a3ae8a45443a512a27ee63c4bb7b8789 /tools/perf/scripts/python/export-to-postgresql.py
parentb9c37d3d1e015adc015c0a519c7fe8cd7fd2a399 (diff)
cgroup: fix idr leak for the first cgroup root
The valid cgroup hierarchy ID range includes 0, so we can't filter for positive numbers when freeing it, or it'll leak the first ID. No big deal, just disruptive when reading the code. The ID is freed during error handling and when the reference count hits zero, so the double-free test is not necessary; remove it. Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions