aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorStephane Grosjean <[email protected]>2013-08-09 11:44:06 +0200
committerDavid S. Miller <[email protected]>2013-08-11 21:51:49 -0700
commit3c322a56b01695df15c70bfdc2d02e0ccd80654e (patch)
tree3da6918ee3ce3e41f40395214aa15c27f50c176a /include/linux/fpga/fpga-mgr.h
parent29d7919692e591c2f0e1f743a7f6c613c1266ece (diff)
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 <[email protected]> Signed-off-by: Stephane Grosjean <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions