diff options
author | YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> | 2013-01-21 07:48:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-21 19:33:14 +0100 |
commit | 6bce6b4e16e46cc860175b9e10a283194ef9f004 (patch) | |
tree | 9bb9055ca50358cec29433447fa9c038b1a171af /net/ipv6 | |
parent | ndisc: Move ndisc_opt_addr_space() to include/net/ndisc.h. (diff) | |
download | linux-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.c | 2 |
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); |