mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-06 10:15:06 -05:00
can: peak_canfd: improves 32-bit alignment
The embedded firmware aligns its messages on 32-bit boundaries. This patch makes sure to browse through the list of received messages while respecting 32-bit alignment. Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
committed by
Marc Kleine-Budde
parent
f805ed8489
commit
0cccf0abf2
@@ -486,7 +486,7 @@ int peak_canfd_handle_msgs_list(struct peak_canfd_priv *priv,
|
||||
if (msg_size <= 0)
|
||||
break;
|
||||
|
||||
msg_ptr += msg_size;
|
||||
msg_ptr += ALIGN(msg_size, 4);
|
||||
}
|
||||
|
||||
if (msg_size < 0)
|
||||
|
||||
Reference in New Issue
Block a user