Files
Stephane Grosjean d00ff4f2e5 can: pcan_usb: fix wrong memcpy() bytes length
commit 3c322a56b0 upstream.

Fix possibly wrong memcpy() bytes length since some CAN records received from
PCAN-USB could define a DLC field in range [9..15].
In that case, the real DLC value MUST be used to move forward the record pointer
but, only 8 bytes max. MUST be copied into the data field of the struct
can_frame object of the skb given to the network core.

Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-08-20 08:43:03 -07:00
..
2013-03-27 13:07:08 +01:00
2013-01-28 18:17:25 -05:00
2012-12-03 11:16:11 -08:00
2012-12-03 11:16:11 -08:00
2013-03-27 13:07:08 +01:00
2013-01-26 16:58:59 +01:00
2013-01-28 18:17:25 -05:00