can: Fix can_send() handling on dev_queue_xmit() failures
authorOliver Hartkopp <oliver@hartkopp.net>
Thu, 8 May 2008 09:49:55 +0000 (02:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 May 2008 09:49:55 +0000 (02:49 -0700)
commitc2ab7ac225e29006b7117d6a9fe8f3be8d98b0c2
tree6e327f59003db8e1de548623b08f4b8bb14c308f
parent33f9936b2b73dba6c8685994c441c4fd30b04814
can: Fix can_send() handling on dev_queue_xmit() failures

The tx packet counting and the local loopback of CAN frames should
only happen in the case that the CAN frame has been enqueued to the
netdevice tx queue successfully.

Thanks to Andre Naujoks <nautsch@gmail.com> for reporting this issue.

Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: Urs Thuermann <urs@isnogud.escape.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/can/af_can.c