summaryrefslogtreecommitdiffstats
path: root/net/rds/tcp_send.c
diff options
context:
space:
mode:
authorEric Dumazet2017-03-17 16:05:28 +0100
committerDavid S. Miller2017-03-22 01:21:27 +0100
commitaea92fb2e09e29653b023d4254ac9fbf94221538 (patch)
tree146bf8ca4cb9b88ca710c379a317e7135db667f2 /net/rds/tcp_send.c
parenttun: fix inability to set offloads after disabling them via ethtool (diff)
downloadkernel-qcow2-linux-aea92fb2e09e29653b023d4254ac9fbf94221538.tar.gz
kernel-qcow2-linux-aea92fb2e09e29653b023d4254ac9fbf94221538.tar.xz
kernel-qcow2-linux-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 'net/rds/tcp_send.c')
0 files changed, 0 insertions, 0 deletions