diff options
Diffstat (limited to 'net/batman-adv/routing.c')
-rw-r--r-- | net/batman-adv/routing.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c index f75091c983ee..396c0134c5ab 100644 --- a/net/batman-adv/routing.c +++ b/net/batman-adv/routing.c | |||
@@ -374,6 +374,7 @@ int batadv_recv_icmp_packet(struct sk_buff *skb, | |||
374 | if (skb_cow(skb, ETH_HLEN) < 0) | 374 | if (skb_cow(skb, ETH_HLEN) < 0) |
375 | goto out; | 375 | goto out; |
376 | 376 | ||
377 | ethhdr = eth_hdr(skb); | ||
377 | icmph = (struct batadv_icmp_header *)skb->data; | 378 | icmph = (struct batadv_icmp_header *)skb->data; |
378 | icmp_packet_rr = (struct batadv_icmp_packet_rr *)icmph; | 379 | icmp_packet_rr = (struct batadv_icmp_packet_rr *)icmph; |
379 | if (icmp_packet_rr->rr_cur >= BATADV_RR_LEN) | 380 | if (icmp_packet_rr->rr_cur >= BATADV_RR_LEN) |