Skip to content

ovpn: assorted cleanups

Ralf Lici openvpn-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ovpn: use the right RCU primitive in ovpn_crypto_kill_keydrivers/net/ovpn/crypto.c+4 -20 replies
2/3ovpn: correct kdoc return statement in ovpn_udp_outputdrivers/net/ovpn/udp.c+1 -10 replies
3/3ovpn: drop redundant workqueue_struct forward declarationdrivers/net/ovpn/ovpnpriv.h+0 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Openvpn-devel] [PATCH ovpn net-next 0/3] ovpn: assorted cleanups

Hi,

This series collects three small cleanups with no functional change.

Patch 1 uses rcu_dereference_protected instead of rcu_access_pointer in ovpn_crypto_kill_key, as the slot pointers are dereferenced under the update-side lock.

Patch 2 corrects the kdoc of ovpn_udp_output: the skb is consumed only on success, as the caller frees it when an error is returned.

Patch 3 drops a redundant forward declaration of struct workqueue_struct that was added together with ovpn_wq.

Patches 1 and 2 link to the Sashiko reports that flagged them.

Thanks,

Ralf Lici
Mandelbit Srl

---
Ralf Lici (3):
ovpn: use the right RCU primitive in ovpn_crypto_kill_key
ovpn: correct kdoc return statement in ovpn_udp_output
ovpn: drop redundant workqueue_struct forward declaration

 drivers/net/ovpn/crypto.c   | 6 ++++--
 drivers/net/ovpn/ovpnpriv.h | 2 --
 drivers/net/ovpn/udp.c      | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

base-commit: 7ccc5e05043b1bb84326b19a2b05938d8f7a2ae6

Signature · 8 lines
2.56.0



_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel