]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: using pskb_may_pull as early as possible
authorLi RongQing <roy.qing.li@gmail.com>
Thu, 16 Oct 2014 01:17:18 +0000 (09:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Oct 2014 03:33:23 +0000 (23:33 -0400)
commit8ab4f5c4da066edf73b3b4eedf370b32630e7e52
tree3928c4ef40d25a2f6e5987cb67b2578844fc6588
parent187aa3705c364ec56fd2ce5ee36613781cf04b96
vxlan: using pskb_may_pull as early as possible

pskb_may_pull should be used to check if skb->data has enough space,
skb->len can not ensure that.

Cc: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c