summaryrefslogtreecommitdiff
path: root/drivers/net/xen-netfront.c
diff options
context:
space:
mode:
authorLuu An Phu <phu.luuan@nxp.com>2018-01-02 10:44:18 +0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-03 10:19:44 +0100
commit7776af55a7aea339c72a13ab6d2f2e90383e19bf (patch)
tree076e446b4b4464e40cd79658ce5a8b73a549de56 /drivers/net/xen-netfront.c
parentab70448a0cfc317a6ce4a4235a63543117c9d0ea (diff)
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>
Diffstat (limited to 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions