]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
batman-adv: fix batadv_v_ogm_packet_recv error handling kernel-doc
authorSven Eckelmann <sven@narfation.org>
Thu, 4 Jun 2026 20:00:46 +0000 (22:00 +0200)
committerSven Eckelmann <sven@narfation.org>
Fri, 5 Jun 2026 07:12:08 +0000 (09:12 +0200)
All receive handlers in batman-adv are consuming the skbuff independent of
the result of the handler. The "(without freeing the skb) on failure" is
therefore not corrrect anymore for the current implementation.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/bat_v_ogm.c

index 72ae8ffc9db654fe721ece50cd498139db0931fe..14920f4bb315b6575e9129bca4a396853f10d136 100644 (file)
@@ -984,7 +984,7 @@ out:
  * @if_incoming: the interface where this OGM has been received
  *
  * Return: NET_RX_SUCCESS and consume the skb on success or returns NET_RX_DROP
- * (without freeing the skb) on failure
+ * (freeing the skb) on failure
  */
 int batadv_v_ogm_packet_recv(struct sk_buff *skb,
                             struct batadv_hard_iface *if_incoming)