summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-03-17 08:05:28 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-25 14:22:10 +0100
commitffde339b95f5729e9d57ba0802b50a611854b728 (patch)
tree1b3a25c5c67690d00359b5ab819b7939eaf7ee82 /drivers
parent4bf8a4f179ed5c9775f0970fc652cc04c0994186 (diff)
sch_dsmark: fix invalid skb_cow() usage
[ Upstream commit aea92fb2e09e29653b023d4254ac9fbf94221538 ] 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> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions