]> git.baikalelectronics.ru Git - kernel.git/commit
can: Network Drop Monitor: Make use of consume_skb() in af_can.c
authorOliver Hartkopp <oliver@hartkopp.net>
Fri, 17 Apr 2009 08:38:46 +0000 (01:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Apr 2009 08:38:46 +0000 (01:38 -0700)
commiteaa720cc8dbd853de8f48097f5212f1506e3746b
tree51fe02f0a77d778d1bae8aff1b5dcc64d3da1769
parentad8b0141f8dd4a28866b55f307f8feab5bbe49d4
can: Network Drop Monitor: Make use of consume_skb() in af_can.c

Since commit ee6aa79e73b115f5028af0b9913ac6e6afcf4428 ("Network Drop
Monitor: Adding kfree_skb_clean for non-drops and modifying
end-of-line points for skbs") so called end-of-line points for skb's
should use consume_skb() to free the socket buffer.

In opposite to consume_skb() the function kfree_skb() is intended to
be used for unexpected skb drops e.g. in error conditions that now can
trigger the network drop monitor if enabled.

This patch moves the skb end-of-line point in af_can.c to use
consume_skb().

Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/can/af_can.c