summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo <cascardo@igalia.com>2025-01-23 15:32:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-20 17:21:34 +0300
commit6d991f569c5ef6eaeadf1238df2c36e3975233ad (patch)
tree1f2426e4f187c4339f485931e8106b18bd387dea /tools/perf/scripts/python/check-perf-trace.py
parent038ef0754aae76f79b147b8867f9250e6a976872 (diff)
downloadlinux-6d991f569c5ef6eaeadf1238df2c36e3975233ad.tar.xz
char: misc: deallocate static minor in error path
When creating sysfs files fail, the allocated minor must be freed such that it can be later reused. That is specially harmful for static minor numbers, since those would always fail to register later on. Fixes: 6d04d2b554b1 ("misc: misc_minor_alloc to use ida for all dynamic/misc dynamic minors") Cc: stable <stable@kernel.org> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com> Link: https://lore.kernel.org/r/20250123123249.4081674-5-cascardo@igalia.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions