aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ndisc.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>2013-01-21 06:48:03 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-21 13:33:14 -0500
commit6bce6b4e16e46cc860175b9e10a283194ef9f004 (patch)
tree9bb9055ca50358cec29433447fa9c038b1a171af /net/ipv6/ndisc.c
parentndisc: Move ndisc_opt_addr_space() to include/net/ndisc.h. (diff)
downloadlinux-dev-6bce6b4e16e46cc860175b9e10a283194ef9f004.tar.xz
linux-dev-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/ndisc.c')
-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);