提交 887e07be 编写于 作者: G Gerhard Bertelsmann 提交者: Marc Kleine-Budde

can: sun4i: fix arbitration lost error reporting

This patch fixes a bug in arbitration error reporting
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NGerhard Bertelsmann <info@gerhard-bertelsmann.de>
Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册