diff options
author | Paolo Abeni <pabeni@redhat.com> | 2023-10-17 18:49:51 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-10-19 04:09:31 +0300 |
commit | 68b54aeff804acceb02f228ea2e28419272c1fb9 (patch) | |
tree | 2ee3946a361acf50f951e4b6bda9cbaad27e0d49 /scripts/gdb/linux/proc.py | |
parent | a13b67c9a015c4e21601ef9aa4ec9c5d972df1b4 (diff) | |
download | linux-68b54aeff804acceb02f228ea2e28419272c1fb9.tar.xz |
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 <dan.carpenter@linaro.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Jakub Sitnicki <jakub@cloudflare.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/r/8f99194c698bcef12666f0a9a999c58f8b1cb52c.1697557782.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions