From dbcfea8c53779156920c848a868fdbf00413267d Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Fri, 11 Jan 2019 08:22:53 +0000 Subject: [PATCH] can: mcp25xxfd: fix rx can-fd reception dlc instead of length was passed as argument - fixed Signed-off-by: Martin Sperl --- drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_rx.c b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_rx.c index 8c6aee06fe2d7f..27a6820ce77bb2 100644 --- a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_rx.c +++ b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_rx.c @@ -198,7 +198,7 @@ int mcp25xxfd_can_submit_rx_frame(struct spi_device *spi, int fifo) flags |= (rx->flags & CAN_OBJ_FLAGS_BRS) ? CANFD_BRS : 0; flags |= (rx->flags & CAN_OBJ_FLAGS_ESI) ? CANFD_ESI : 0; skb = mcp25xxfd_can_submit_rx_fd_frame(net, id, flags, - dlc, &data); + len, &data); } else { skb = mcp25xxfd_can_submit_rx_normal_frame(net, id, len, &data);