aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorOliver Hartkopp <[email protected]>2016-11-23 13:33:25 +0000
committerMarc Kleine-Budde <[email protected]>2016-11-23 14:22:18 +0000
commit5499a6b22e5508b921c447757685b0a5e40a07ed (patch)
tree7beb90dee5e614fd6b29068b045f778eac11d7d1 /scripts/gcc-plugins/sancov_plugin.c
parentflow_dissect: call init_default_flow_dissectors() earlier (diff)
downloadkernel-5499a6b22e5508b921c447757685b0a5e40a07ed.tar.gz
kernel-5499a6b22e5508b921c447757685b0a5e40a07ed.zip
can: bcm: fix support for CAN FD frames
Since commit 6f3b911d5f29b98 ("can: bcm: add support for CAN FD frames") the CAN broadcast manager supports CAN and CAN FD data frames. As these data frames are embedded in struct can[fd]_frames which have a different length the access to the provided array of CAN frames became dependend of op->cfsiz. By using a struct canfd_frame pointer for the array of CAN frames the new offset calculation based on op->cfsiz was accidently applied to CAN FD frame element lengths. This fix makes the pointer to the arrays of the different CAN frame types a void pointer so that the offset calculation in bytes accesses the correct CAN frame elements. Reference: http://marc.info/?l=linux-netdev&m=147980658909653 Reported-by: Andrey Konovalov <[email protected]> Signed-off-by: Oliver Hartkopp <[email protected]> Tested-by: Andrey Konovalov <[email protected]> Cc: linux-stable <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions