aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/routing.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv/routing.c')
-rw-r--r--net/batman-adv/routing.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c
index 8d64348e3cc0..1aa1722d0187 100644
--- a/net/batman-adv/routing.c
+++ b/net/batman-adv/routing.c
@@ -1196,14 +1196,8 @@ int batadv_recv_bcast_packet(struct sk_buff *skb,
1196 1196
1197 spin_unlock_bh(&orig_node->bcast_seqno_lock); 1197 spin_unlock_bh(&orig_node->bcast_seqno_lock);
1198 1198
1199 /* keep skb linear for crc calculation */
1200 if (skb_linearize(skb) < 0)
1201 goto out;
1202
1203 bcast_packet = (struct batadv_bcast_packet *)skb->data;
1204
1205 /* check whether this has been sent by another originator before */ 1199 /* check whether this has been sent by another originator before */
1206 if (batadv_bla_check_bcast_duplist(bat_priv, bcast_packet, skb->len)) 1200 if (batadv_bla_check_bcast_duplist(bat_priv, skb))
1207 goto out; 1201 goto out;
1208 1202
1209 /* rebroadcast packet */ 1203 /* rebroadcast packet */