diff options
author | Paolo Abeni <[email protected]> | 2023-10-17 17:49:51 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-10-18 18:09:31 -0700 |
commit | 68b54aeff804acceb02f228ea2e28419272c1fb9 (patch) | |
tree | 2ee3946a361acf50f951e4b6bda9cbaad27e0d49 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | a13b67c9a015c4e21601ef9aa4ec9c5d972df1b4 (diff) |
tcp_bpf: properly release resources on error paths
In the blamed commit below, I completely forgot to release the acquired
resources before erroring out in the TCP BPF code, as reported by Dan.
Address the issues by replacing the bogus return with a jump to the
relevant cleanup code.
Fixes: 419ce133ab92 ("tcp: allow again tcp_disconnect() when threads are waiting")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Acked-by: Jakub Sitnicki <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Reviewed-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/r/8f99194c698bcef12666f0a9a999c58f8b1cb52c.1697557782.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions