From b4181aef8770a85bdf2fd4080f1b06387447c8aa Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 11 Nov 2008 16:51:56 -0800 Subject: [PATCH] Reset mac header in flow_extract(), because it might initially be null. __alloc_skb() sets the mac header to null, and not all call chains reset it. --- datapath/flow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/datapath/flow.c b/datapath/flow.c index 48c2d4c9d..10060b05d 100644 --- a/datapath/flow.c +++ b/datapath/flow.c @@ -343,6 +343,7 @@ int flow_extract(struct sk_buff *skb, uint16_t in_port, return 0; } + skb_reset_mac_header(skb); eth = eth_hdr(skb); esh = (struct eth_snap_hdr *) eth; nh_ofs = sizeof *eth; -- 2.43.0