[Openvpn-devel,net-next,2/3] ovpn: correct kdoc return statement in ovpn_udp_output

Message ID a47d1e68adb6c9dc6b34aa59c3ebad8c69298dcb.1795704654.git.ralf@mandelbit.com
State New
Headers
Series ovpn: assorted cleanups |

Commit Message

Ralf Lici Nov. 26, 2026, 3:15 p.m. UTC
  Fix the return statement of ovpn_udp_output by stating that the skb is
consumed only on success, not unconditionally.

Link: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260921102215.3599702-1-antonio%40openvpn.net?part=3
Signed-off-by: Ralf Lici <ralf@mandelbit.com>
---
 drivers/net/ovpn/udp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/drivers/net/ovpn/udp.c b/drivers/net/ovpn/udp.c
index 055cdb1bee13..422c1f6e0c76 100644
--- a/drivers/net/ovpn/udp.c
+++ b/drivers/net/ovpn/udp.c
@@ -407,7 +407,7 @@  static int ovpn_udp6_output(struct ovpn_peer *peer, struct ovpn_bind *bind,
  * @key: route key snapshot used for cache validation and flow lookup
  *
  * rcu_read_lock should be held on entry.
- * On return, the skb is consumed.
+ * On success, the skb is consumed.
  *
  * Return: 0 on success or a negative error code otherwise
  */