Thread (3 messages) 3 messages, 3 authors, 2018-01-03

Re: [PATCH] flex_can: Correct the checking for frame length in flexcan_start_xmit()

From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: 2018-01-03 10:35:40
Also in: linux-can

On 01/02/2018 04:44 AM, Luu An Phu wrote:
From: "phu.luuan" <redacted>

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 <redacted>
Applied to can.

Tnx,
Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help