summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2026-05-03 15:23:25 -0400
committerLen Brown <len.brown@intel.com>2026-10-03 13:01:42 -0400
commit11741cc90f9176746b8595beab4fec8d736ebd18 (patch)
treed6f89d0d83d8a93fbcc6abb924b45b27fa70ec87 /tools/perf/scripts/python
parent5e940dd96bef6ca03b3b1b4740351237e5ec17e3 (diff)
downloadlinux-next-11741cc90f9176746b8595beab4fec8d736ebd18.tar.gz
linux-next-11741cc90f9176746b8595beab4fec8d736ebd18.zip
tools/power turbostat: Fix PMT error path fd handling
It is possible to leak a file descriptor if a diretory open succeeds, but the scan fails. Close the fd on error. Also, on cleanup, check for NULL fd. Assisted-by: Claude: Claude Sonnet 4.6 Fixes: 4265a86582ea ("tools/power turbostat: Add PMT directory iterator helper") Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions