Commit 887e07be authored by Gerhard Bertelsmann's avatar Gerhard Bertelsmann Committed by Marc Kleine-Budde

can: sun4i: fix arbitration lost error reporting

This patch fixes a bug in arbitration error reporting
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGerhard Bertelsmann <info@gerhard-bertelsmann.de>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent bbb300eb
......@@ -601,7 +601,7 @@ static int sun4i_can_err(struct net_device *dev, u8 isrc, u8 status)
stats->tx_errors++;
if (likely(skb)) {
cf->can_id |= CAN_ERR_LOSTARB;
cf->data[0] = (alc & 0x1f) >> 8;
cf->data[0] = (alc >> 8) & 0x1f;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment