flow_dissector: Check skb for VLAN only if skb specified.
authorEric Garver <e@erig.me>
Mon, 17 Oct 2016 20:30:12 +0000 (16:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2016 14:35:46 +0000 (10:35 -0400)
commit3805a938a6c24284863732fd45cec5a04609a224
tree3bfabe7aa9cd46d2bc4cda2ceb532981558908f1
parentb4f0fd4baa90ecce798e0d26d1cce8f4457f2028
flow_dissector: Check skb for VLAN only if skb specified.

Fixes a panic when calling eth_get_headlen(). Noticed on i40e driver.

Fixes: d5709f7ab776 ("flow_dissector: For stripped vlan, get vlan info from skb->vlan_tci")
Signed-off-by: Eric Garver <e@erig.me>
Reviewed-by: Jakub Sitnicki <jkbs@redhat.com>
Acked-by: Amir Vadai <amir@vadai.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/flow_dissector.c