Regression was introduced in 4d30670880c84071dba4b220f595e64d6c01d1ba.

Signed-off-by: Sven Eckelmann <s...@narfation.org>
---
 routing.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/routing.c b/routing.c
index 5e99188..7f458e9 100644
--- a/routing.c
+++ b/routing.c
@@ -728,7 +728,8 @@ void receive_bat_packet(const struct ethhdr *ethhdr,
 
                        spin_lock_bh(&orig_neigh_node->ogm_cnt_lock);
                        word = &(orig_neigh_node->bcast_own[offset]);
-                       bit_mark(word, if_incoming_seqno - batman_packet->seqno 
- 2);
+                       bit_mark(word,
+                                if_incoming_seqno - batman_packet->seqno - 2);
                        orig_neigh_node->bcast_own_sum[if_incoming->if_num] =
                                bit_packet_count(word);
                        spin_unlock_bh(&orig_neigh_node->ogm_cnt_lock);
-- 
1.7.5.3

Reply via email to