arp: fix possible crash in arp_rcv()
authorEric Dumazet <edumazet@google.com>
Fri, 8 Feb 2013 18:48:21 +0000 (18:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Feb 2013 01:39:39 +0000 (20:39 -0500)
commit044453b3efdc90bdd5feffe74b99d95dec70ac43
tree62f3107f82879cc5aeec7cf02f39f7e37de07a41
parent839c8cc32bc252345f4d5767d2d6cf695f2124ab
arp: fix possible crash in arp_rcv()

We should call skb_share_check() before pskb_may_pull(), or we
can crash in pskb_expand_head()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/arp.c