diff options
author | Luu An Phu <phu.luuan@nxp.com> | 2018-01-02 06:44:18 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2018-01-04 18:14:38 +0300 |
commit | 13454c14550065fcc1705d6bd4ee6d40e057099f (patch) | |
tree | d848eeb277470e3841c7c394cd4f060a92eb2fbb /include/linux/fpga/fpga-mgr.h | |
parent | d5b42e6607661b198d8b26a0c30969605b1bf5c7 (diff) | |
download | linux-13454c14550065fcc1705d6bd4ee6d40e057099f.tar.xz |
can: flex_can: Correct the checking for frame length in flexcan_start_xmit()
The flexcan_start_xmit() function compares the frame length with data
register length to write frame content into data[0] and data[1]
register. Data register length is 4 bytes and frame maximum length is 8
bytes.
Fix the check that compares frame length with 3. Because the register
length is 4.
Signed-off-by: Luu An Phu <phu.luuan@nxp.com>
Reviewed-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions