net: better drop monitoring in ip{6}_recv_error()
authorEric Dumazet <edumazet@google.com>
Fri, 22 Apr 2016 05:27:32 +0000 (22:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2016 19:48:10 +0000 (15:48 -0400)
commit960a26282f5b1f084313c59d22f76026e6637995
treea0aed4c036b22af1bad576f862d8c8b69792c596
parent0aea76d35c9651d55bbaf746e7914e5f9ae5a25d
net: better drop monitoring in ip{6}_recv_error()

We should call consume_skb(skb) when skb is properly consumed,
or kfree_skb(skb) when skb must be dropped in error case.

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