Skip to content
Commit aea92fb2 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

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: 4c30719f ("[PKT_SCHED] dsmark: handle cloned and non-linear skb's")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 09050957
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment