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)
commit91269e390d062b526432f2ef1352b8df82e0e0bc
tree3928c4ef40d25a2f6e5987cb67b2578844fc6588
parentce6502a8f9572179f044a4d62667c4645256d6e4
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