kernel_optimize_test/drivers/net/can
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
..
mscan can: mscan: fix improper return if dlc < 8 in start_xmit function 2010-01-08 01:02:17 -08:00
sja1000 drivers/net/: use DEFINE_PCI_DEVICE_TABLE() 2010-01-07 23:54:26 -08:00
usb can: Fix data length code handling in rx path 2009-12-13 19:47:42 -08:00
at91_can.c can/at91: don't check platform_get_irq's return value against zero 2009-12-18 20:31:56 -08:00
bfin_can.c can: Fix data length code handling in rx path 2009-12-13 19:47:42 -08:00
dev.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-11-17 00:05:02 -08:00
Kconfig can: CAN_MCP251X should depend on HAS_DMA 2009-12-13 19:56:36 -08:00
Makefile can: add the driver for Analog Devices Blackfin on-chip CAN controllers 2009-12-11 15:07:58 -08:00
mcp251x.c can: Fix data length code handling in rx path 2009-12-13 19:47:42 -08:00
ti_hecc.c can: Fix data length code handling in rx path 2009-12-13 19:47:42 -08:00
vcan.c can: fix NOHZ local_softirq_pending 08 warning 2009-09-15 01:31:34 -07:00