packet: uses kfree_skb() for errors.
authorWeongyo Jeong <weongyo.linux@gmail.com>
Thu, 14 Apr 2016 21:10:04 +0000 (14:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 21:50:44 +0000 (17:50 -0400)
commitda37845fdce24e174f44d020bc4085ddd1c8a6bd
tree51bd75c4238a4cab1709355823451d22702e5453
parent333f796235a52727db7e0a13888045f3aa3d5335
packet: uses kfree_skb() for errors.

consume_skb() isn't for error cases that kfree_skb() is more proper
one.  At this patch, it fixed tpacket_rcv() and packet_rcv() to be
consistent for error or non-error cases letting perf trace its event
properly.

Signed-off-by: Weongyo Jeong <weongyo.linux@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c