net: sched: fix TCF_LAYER_LINK case in tcf_get_base_ptr
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 18 Jan 2018 10:32:36 +0000 (11:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jan 2018 19:52:48 +0000 (14:52 -0500)
commitd3303a65a00c94372ddab831570647488e6c06e2
tree30cdf71a81dd251bb3bf34bff60e61a476b9c833
parent560a66075d694e6ec24c60967b4d93d97cbb33d1
net: sched: fix TCF_LAYER_LINK case in tcf_get_base_ptr

TCF_LAYER_LINK and TCF_LAYER_NETWORK returned the same pointer as
skb->data points to the network header.
Use skb_mac_header instead.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h