Skip to content

Commit 7de8440

Browse files
committed
Merge tag 'batadv-net-for-davem-20170613' of git://git.open-mesh.org/linux-merge
Simon Wunderlich says: ==================== Here are two batman-adv bugfixes: - fix rx packet counters for local ARP replies, by Sven Eckelmann - fix memory leaks for unicast packetes received from another gateway in bridge loop avoidance, by Andreas Pape ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents c5549ee + a1a745e commit 7de8440

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

net/batman-adv/distributed-arp-table.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,8 +1064,9 @@ bool batadv_dat_snoop_outgoing_arp_request(struct batadv_priv *bat_priv,
10641064

10651065
skb_new->protocol = eth_type_trans(skb_new, soft_iface);
10661066

1067-
soft_iface->stats.rx_packets++;
1068-
soft_iface->stats.rx_bytes += skb->len + ETH_HLEN + hdr_size;
1067+
batadv_inc_counter(bat_priv, BATADV_CNT_RX);
1068+
batadv_add_counter(bat_priv, BATADV_CNT_RX_BYTES,
1069+
skb->len + ETH_HLEN + hdr_size);
10691070

10701071
netif_rx(skb_new);
10711072
batadv_dbg(BATADV_DBG_DAT, bat_priv, "ARP request replied locally\n");

net/batman-adv/routing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ int batadv_recv_unicast_packet(struct sk_buff *skb,
987987
batadv_dbg(BATADV_DBG_BLA, bat_priv,
988988
"recv_unicast_packet(): Dropped unicast pkt received from another backbone gw %pM.\n",
989989
orig_addr_gw);
990-
return NET_RX_DROP;
990+
goto free_skb;
991991
}
992992
}
993993

0 commit comments

Comments
 (0)