]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e1d12167d3ffe4bc5c88b16d03285a27ae8769e
tree6e327f59003db8e1de548623b08f4b8bb14c308f
parent0deb3d5a6b28320e567a9d3561be503ac65003a9
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