diff options
author | Ilpo Järvinen <[email protected]> | 2023-07-17 16:14:52 +0300 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2023-07-25 08:52:27 -0600 |
commit | 51a0c3b7f028169e40db930575dd01fe81c3e765 (patch) | |
tree | 05f64f9ba0c0f5b0b7133b76cafd6f646f9bc053 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | f99e413eb54652e2436cc56d081176bc9a34cd8d (diff) |
selftests/resctrl: Close perf value read fd on errors
Perf event fd (fd_lm) is not closed when run_fill_buf() returns error.
Close fd_lm only in cat_val() to make it easier to track it is always
closed.
Fixes: 790bf585b0ee ("selftests/resctrl: Add Cache Allocation Technology (CAT) selftest")
Signed-off-by: Ilpo Järvinen <[email protected]>
Tested-by: Babu Moger <[email protected]>
Tested-by: Shaopeng Tan (Fujitsu) <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions