can: Unify droping of invalid tx skbs and netdev stats
authorOliver Hartkopp <oliver@hartkopp.net>
Tue, 12 Jan 2010 10:00:46 +0000 (02:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jan 2010 10:00:46 +0000 (02:00 -0800)
commit3ccd4c6167d3b39d52631767ebbf8b5677c5855d
treebfcb801edebd00e8b30e897038bad7fee39625cc
parentd218d11133d888f9745802146a50255a4781d37a
can: Unify droping of invalid tx skbs and netdev stats

To prevent the CAN drivers to operate on invalid socketbuffers the skbs are
now checked and silently dropped at the xmit-function consistently.

Also the netdev stats are consistently using the CAN data length code (dlc)
for [rx|tx]_bytes now.

Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/at91_can.c
drivers/net/can/bfin_can.c
drivers/net/can/mcp251x.c
drivers/net/can/mscan/mscan.c
drivers/net/can/sja1000/sja1000.c
drivers/net/can/ti_hecc.c
drivers/net/can/usb/ems_usb.c
drivers/net/can/vcan.c
include/linux/can/dev.h