All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iproute2 0/2] lib: bpf_legacy: some misc fixes
@ 2021-04-19 13:49 Andrea Claudi
  2021-04-19 13:49 ` [PATCH iproute2 1/2] lib: bpf_legacy: treat 0 as a valid file descriptor Andrea Claudi
  2021-04-19 13:49 ` [PATCH iproute2 2/2] lib: bpf_legacy: fix missing socket close when connect() fails Andrea Claudi
  0 siblings, 2 replies; 3+ messages in thread
From: Andrea Claudi @ 2021-04-19 13:49 UTC (permalink / raw)
  To: netdev; +Cc: stephen, dsahern

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(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-19 13:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-19 13:49 [PATCH iproute2 0/2] lib: bpf_legacy: some misc fixes Andrea Claudi
2021-04-19 13:49 ` [PATCH iproute2 1/2] lib: bpf_legacy: treat 0 as a valid file descriptor Andrea Claudi
2021-04-19 13:49 ` [PATCH iproute2 2/2] lib: bpf_legacy: fix missing socket close when connect() fails Andrea Claudi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.