linux/drivers/net/can/mscan
Wolfgang Grandegger 2d4b6faf7d can: mscan: fix improper return if dlc < 8 in start_xmit function
The start_xmit function of the MSCAN Driver did return improperly if
the CAN dlc check failed (skb not freed and invalid return code). This
patch adds a proper check of the frame lenght and data size and returns
now correctly. The invalid skb packets are dropped silently as suggested
by David Miller in the thread "[RFC] ndo_validate_skb: Let the netdev
check a valid skb content" on the netdev mailing list.

Furthermore, a typo has been fixed.

Signed-off-by: Wolfgang Grandegger <wg@denx.de>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-01-08 01:02:17 -08:00
..
Kconfig net/can/mscan: improve build 2009-11-17 03:57:34 -08:00
Makefile net/can/mscan: improve build 2009-11-17 03:57:34 -08:00
mpc5xxx_can.c net/can/mscan: improve build 2009-11-17 03:57:34 -08:00
mscan.c can: mscan: fix improper return if dlc < 8 in start_xmit function 2010-01-08 01:02:17 -08:00
mscan.h net/can/mscan: replace hardcoded values with defines 2009-11-17 03:54:04 -08:00