diff options
author | 2024-03-25 16:56:48 +0100 | |
---|---|---|
committer | 2024-03-26 20:48:24 -0700 | |
commit | 417e91e856099e9b8a42a2520e2255e6afe024be (patch) | |
tree | cd7fdfe265a8661485225d94989b4ede3da7f76b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests: tls: add test with a partially invalid iov (diff) | |
download | wireguard-linux-417e91e856099e9b8a42a2520e2255e6afe024be.tar.xz wireguard-linux-417e91e856099e9b8a42a2520e2255e6afe024be.zip |
tls: get psock ref after taking rxlock to avoid leak
At the start of tls_sw_recvmsg, we take a reference on the psock, and
then call tls_rx_reader_lock. If that fails, we return directly
without releasing the reference.
Instead of adding a new label, just take the reference after locking
has succeeded, since we don't need it before.
Fixes: 4cbc325ed6b4 ("tls: rx: allow only one reader at a time")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/fe2ade22d030051ce4c3638704ed58b67d0df643.1711120964.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions