summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>2013-01-21 07:48:03 +0100
committerDavid S. Miller <davem@davemloft.net>2013-01-21 19:33:14 +0100
commit6bce6b4e16e46cc860175b9e10a283194ef9f004 (patch)
tree9bb9055ca50358cec29433447fa9c038b1a171af /net/ipv6
parentndisc: Move ndisc_opt_addr_space() to include/net/ndisc.h. (diff)
downloadlinux-6bce6b4e16e46cc860175b9e10a283194ef9f004.tar.xz
linux-6bce6b4e16e46cc860175b9e10a283194ef9f004.zip
ndisc: Use skb_linearize() instead of pskb_may_pull(skb, skb->len).
Suggested by Eric Dumazet <edumazet@google.com>. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/ndisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 82ccf0a43063..539b2ec37d3a 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -1509,7 +1509,7 @@ int ndisc_rcv(struct sk_buff *skb)
{
struct nd_msg *msg;
- if (!pskb_may_pull(skb, skb->len))
+ if (skb_linearize(skb))
return 0;
msg = (struct nd_msg *)skb_transport_header(skb);