From: Stephane Grosjean Date: Fri, 9 Aug 2013 09:44:06 +0000 (+0200) Subject: can: pcan_usb: fix wrong memcpy() bytes length X-Git-Tag: v3.11-rc6~11^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c322a56b01695df15c70bfdc2d02e0ccd80654e;p=pandora-kernel.git can: pcan_usb: fix wrong memcpy() bytes length 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. Cc: linux-stable Signed-off-by: Stephane Grosjean Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller --- Reading git-diff-tree failed