diff options
author | Eric Dumazet <edumazet@google.com> | 2017-03-17 08:05:28 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-21 17:21:27 -0700 |
commit | aea92fb2e09e29653b023d4254ac9fbf94221538 (patch) | |
tree | 146bf8ca4cb9b88ca710c379a317e7135db667f2 /drivers | |
parent | tun: fix inability to set offloads after disabling them via ethtool (diff) | |
download | linux-dev-aea92fb2e09e29653b023d4254ac9fbf94221538.tar.xz linux-dev-aea92fb2e09e29653b023d4254ac9fbf94221538.zip |
sch_dsmark: fix invalid skb_cow() usage
skb_cow(skb, sizeof(ip header)) is not very helpful in this context.
First we need to use pskb_may_pull() to make sure the ip header
is in skb linear part, then use skb_try_make_writable() to
address clones issues.
Fixes: 4c30719f4f55 ("[PKT_SCHED] dsmark: handle cloned and non-linear skb's")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions