Skip to contentSkip to conversation

ovpn: Fix the return value in ovpn_bind_from_sockaddr() kernel-doc

PATCH Applied Karl Mehltretter 2 participants 2 messages Sep 11 – Sep 14

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ovpn: Fix the return value in ovpn_bind_from_sockaddr() kernel-doc

ovpn_bind_from_sockaddr() returns an ERR_PTR() on failure, never NULL, but its kernel-doc says "NULL otherwise". Say ERR_PTR().

The wrong text came in with commit 80747caef33d ("ovpn: introduce the ovpn_peer object").

Assisted-by LLM
---
 drivers/net/ovpn/bind.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ovpn/bind.c +1 -1
index e42b60cd04a9852c80a0cc478d499821836ab909..62a5ccfd3502a2680b45b0732804eafd47d79a2c 100644
@@ -18,7 +18,7 @@
  * ovpn_bind_from_sockaddr - retrieve binding matching sockaddr
  * @ss: the sockaddr to match
  *
- * Return: the bind matching the passed sockaddr if found, NULL otherwise
+ * Return: the new bind for the passed sockaddr, an ERR_PTR() on failure
  */
 struct ovpn_bind *ovpn_bind_from_sockaddr(const struct sockaddr_storage *ss)
 {
Signature · 1 line
2.39.5 (Apple Git-154)
maintainer Applied
#1 lore raw
Quoted 8 lines · Karl Mehltretter

ovpn_bind_from_sockaddr() returns an ERR_PTR() on failure, never NULL, but its kernel-doc says "NULL otherwise". Say ERR_PTR().

The wrong text came in with commit 80747caef33d ("ovpn: introduce the ovpn_peer object").

[...]

Applied, thanks!

[1/1] ovpn: Fix the return value in ovpn_bind_from_sockaddr() kernel-doc

      commit: 1087c84dd9554a427f6ca6e350c22688eebd3075

Best regards,

Signature · 1 line
Antonio Quartulli <[email protected]>