android_kernel_oneplus_msm8998/drivers/net/can
Luu An Phu 7776af55a7 can: flex_can: Correct the checking for frame length in flexcan_start_xmit()
[ Upstream commit 13454c14550065fcc1705d6bd4ee6d40e057099f ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-03 10:19:44 +01:00
..
c_can can: c_can: don't indicate triple sampling support for D_CAN 2017-11-15 17:13:13 +01:00
cc770
m_can
mscan
sja1000
softing
spi
usb can: peak: fix potential bug in packet fragmentation 2018-01-23 19:50:16 +01:00
at91_can.c
bfin_can.c
dev.c
flexcan.c can: flex_can: Correct the checking for frame length in flexcan_start_xmit() 2018-03-03 10:19:44 +01:00
grcan.c
janz-ican3.c
Kconfig
led.c
Makefile
pch_can.c
rcar_can.c
slcan.c
sun4i_can.c can: sun4i: handle overrun in RX FIFO 2017-11-15 17:13:13 +01:00
ti_hecc.c can: ti_hecc: Fix napi poll return value for repoll 2017-12-16 10:33:47 +01:00
vcan.c
xilinx_can.c