]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 5 Nov 2014 09:03:21 +0000 (10:03 +0100)
commite073fb104ffd9170e37b0c528199aa493ae55978
treeffb14e4cafe605d1e4ac926e108f0b7eef17a76d
parentef0444ff81e4aa1580725d7f485a38760e799b22
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>
drivers/net/vxlan.c