Skip to content

Commit

Permalink
can: mcp25xxfd: fix rx can-fd reception
Browse files Browse the repository at this point in the history
dlc instead of length was passed as argument - fixed

Signed-off-by: Martin Sperl <[email protected]>
  • Loading branch information
msperl committed Jan 11, 2019
1 parent a08e4dd commit dbcfea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dbcfea8

Please sign in to comment.