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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 16:59:43 +0000 (08:59 -0800)
commit6f75e2f9f7657c9462b2268c2ff97f93bfa2d3c8
treee718249b16577902eafbc6408e5760c879c4f78f
parent4fe1c409e0067a635653aa227ac3696d6c22c802
vxlan: using pskb_may_pull as early as possible

[ Upstream commit 91269e390d062b526432f2ef1352b8df82e0e0bc ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/vxlan.c