-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
selftests/bpf: close the file descriptor to avoid resource leaks #8708
Conversation
Upstream branch: 9aa8fe2 |
5cf614b
to
c9cf71b
Compare
Upstream branch: 9aa8fe2 |
4dd5bd1
to
42556ff
Compare
c9cf71b
to
26ba3c4
Compare
Upstream branch: 9aa8fe2 |
42556ff
to
489daaf
Compare
26ba3c4
to
3dc28f3
Compare
Upstream branch: 9aa8fe2 |
489daaf
to
2669865
Compare
3dc28f3
to
35ab59d
Compare
Upstream branch: 9aa8fe2 |
2669865
to
8ec2fe4
Compare
35ab59d
to
bf339f7
Compare
Upstream branch: 9aa8fe2 |
8ec2fe4
to
a6ec534
Compare
bf339f7
to
9809c6b
Compare
Upstream branch: aa918db |
a6ec534
to
8d923ca
Compare
9809c6b
to
0a09ea9
Compare
a4b8db7
to
17475dd
Compare
Upstream branch: 1e7857b |
724c842
to
1aa1e4d
Compare
17475dd
to
f11a40d
Compare
Upstream branch: 25601e8 |
1aa1e4d
to
e05d5c2
Compare
f11a40d
to
9c15f8d
Compare
Upstream branch: 0a87d6b |
e05d5c2
to
c415354
Compare
9c15f8d
to
f498508
Compare
Upstream branch: 0a87d6b |
c415354
to
7efd22a
Compare
f498508
to
81d983a
Compare
Upstream branch: a1b5bd4 |
7efd22a
to
4b6191a
Compare
81d983a
to
23145d9
Compare
Upstream branch: e8b4712 |
4b6191a
to
5884d60
Compare
23145d9
to
22b25ae
Compare
Upstream branch: e8b4712 |
5884d60
to
05255d3
Compare
22b25ae
to
10e8f76
Compare
Static Analyis for bench_htab_mem.c with cppcheck:error tools/testing/selftests/bpf/benchs/bench_htab_mem.c:284:3: error: Resource leak: fd [resourceLeak] tools/testing/selftests/bpf/prog_tests/sk_assign.c:41:3: error: Resource leak: tc [resourceLeak] fix the issue by closing the file descriptor (fd & tc) when read & fgets operation fails. Signed-off-by: Malaya Kumar Rout <[email protected]> Acked-by: Hou Tao <[email protected]>
Upstream branch: 06a2236 |
05255d3
to
c2d2ffd
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=946683 expired. Closing PR. |
Pull request for series with
subject: selftests/bpf: close the file descriptor to avoid resource leaks
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=946683