Skip to content

lib: bpf_legacy: some misc fixes

Andrea Claudi netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib: bpf_legacy: treat 0 as a valid file descriptorlib/bpf_legacy.c+1 -10 replies
2/2lib: bpf_legacy: fix missing socket close when connect() failslib/bpf_legacy.c+13 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH iproute2 0/2] lib: bpf_legacy: some misc fixes

This patch set fixes two issues on bpf_legacy library code.
- 1/2 fixes a covscan warning about a possible missing close() treating 0 as a valid file descriptor, as almost elsewhere in iproute2 code.
- 2/2 fixes a missing close() on a socket in some error paths in two functions.

Andrea Claudi (2):
lib: bpf_legacy: treat 0 as a valid file descriptor
lib: bpf_legacy: fix missing socket close when connect() fails

 lib/bpf_legacy.c | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)
Signature · 1 line
2.30.2