Merge tag 'batadv-next-for-davem-20160704' of git://git.open-mesh.org/linux-merge
[sfrench/cifs-2.6.git] / net / batman-adv / routing.c
index 0f8c0ddf7816c79e0dc6077dcedfe411269345c2..af8e11933928694036e743c13a189e613e70f154 100644 (file)
@@ -387,6 +387,7 @@ int batadv_recv_icmp_packet(struct sk_buff *skb,
                if (skb_cow(skb, ETH_HLEN) < 0)
                        goto out;
 
+               ethhdr = eth_hdr(skb);
                icmph = (struct batadv_icmp_header *)skb->data;
                icmp_packet_rr = (struct batadv_icmp_packet_rr *)icmph;
                if (icmp_packet_rr->rr_cur >= BATADV_RR_LEN)