]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: fix too large pskb_may_pull with remote checksum
authorJiri Benc <jbenc@redhat.com>
Mon, 21 Mar 2016 16:50:05 +0000 (17:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Mar 2016 17:32:19 +0000 (13:32 -0400)
commitf9a80e450e57b29bd11937677d0b8d8774546936
treedfdf5f6576e837b63836a18242d231350f89af5c
parentd0e096432ea635a8761c38387c2b2bc32d107c04
vxlan: fix too large pskb_may_pull with remote checksum

vxlan_remcsum is called after iptunnel_pull_header and thus the skb has
vxlan header already pulled. Don't include vxlan header again in the
calculation.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c