Skip to content
Commit 0a1ba2cd authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman
Browse files

tools/power turbostat: fix leak of file descriptor on error return path

[ Upstream commit 15423b95 ]

Currently the error return path does not close the file fp and leaks
a file descriptor. Fix this by closing the file.

Fixes: 5ea7647b

 ("tools/power turbostat: Warn on bad ACPI LPIT data")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent caab8b8b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment