Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'linux-can-next-for-5.20-20220721' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next

Marc Kleine-Budde says:

====================
can-next 2022-07-21

The patch is by Vincent Mailhol and fixes a use on an uninitialized
variable in the pch_can driver (introduced in last pull request to
net-next).

* tag 'linux-can-next-for-5.20-20220721' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next:
can: pch_can: pch_can_error(): initialize errc before using it
====================

Link: https://lore.kernel.org/r/20220721163042.3448384-1-mkl@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+1 -1
+1 -1
drivers/net/can/pch_can.c
··· 489 489 if (!skb) 490 490 return; 491 491 492 + errc = ioread32(&priv->regs->errc); 492 493 if (status & PCH_BUS_OFF) { 493 494 pch_can_set_tx_all(priv, 0); 494 495 pch_can_set_rx_all(priv, 0); ··· 503 502 cf->data[7] = (errc & PCH_REC) >> 8; 504 503 } 505 504 506 - errc = ioread32(&priv->regs->errc); 507 505 /* Warning interrupt. */ 508 506 if (status & PCH_EWARN) { 509 507 state = CAN_STATE_ERROR_WARNING;