diff options
| author | Yuntao Wang <ytcoode@gmail.com> | 2022-04-05 17:57:11 +0300 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2022-04-06 02:49:32 +0300 |
| commit | 2d0df01974ce2b59b6f7d5bd3ea58d74f12ddf85 (patch) | |
| tree | 1bd0c799be678e7e8abaf2e378e42560ea1f05cc /include | |
| parent | 042152c27c3bc3e20882f75c289ced32331f4010 (diff) | |
| download | linux-2d0df01974ce2b59b6f7d5bd3ea58d74f12ddf85.tar.xz | |
selftests/bpf: Fix file descriptor leak in load_kallsyms()
Currently, if sym_cnt > 0, it just returns and does not close file, fix it.
Signed-off-by: Yuntao Wang <ytcoode@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220405145711.49543-1-ytcoode@gmail.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
