]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9f0f1c680c638839ba57a065d7cf2c5ead136b80
tree30cdf71a81dd251bb3bf34bff60e61a476b9c833
parent55fa96fdc1d99458580a25dddf20c7a7671973a5
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