summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorStephane Grosjean <s.grosjean@peak-system.com>2013-08-09 11:44:06 +0200
committerDavid S. Miller <davem@davemloft.net>2013-08-12 06:51:49 +0200
commit3c322a56b01695df15c70bfdc2d02e0ccd80654e (patch)
tree3da6918ee3ce3e41f40395214aa15c27f50c176a /net
parentmacvtap: fix two races (diff)
downloadlinux-3c322a56b01695df15c70bfdc2d02e0ccd80654e.tar.xz
linux-3c322a56b01695df15c70bfdc2d02e0ccd80654e.zip
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 <stable@vger.kernel.org> 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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions