diff options
author | Luu An Phu | 2018-01-02 10:44:18 +0700 |
---|---|---|
committer | Marc Kleine-Budde | 2018-01-04 16:14:38 +0100 |
commit | 13454c14550065fcc1705d6bd4ee6d40e057099f (patch) | |
tree | d848eeb277470e3841c7c394cd4f060a92eb2fbb /arch | |
parent | d5b42e6607661b198d8b26a0c30969605b1bf5c7 (diff) |
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 'arch')
0 files changed, 0 insertions, 0 deletions