mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
can: mcp251xfd: mcp251xfd_chip_start(): fix error handling for mcp251xfd_chip_rx_int_enable()
[ Upstream commit69c55f6e76] This patch fixes the error handling for mcp251xfd_chip_rx_int_enable(). Instead just returning the error, properly shut down the chip. Link: https://lore.kernel.org/all/20211106201526.44292-2-mkl@pengutronix.de Fixes:55e5b97f00("can: mcp25xxfd: add driver for Microchip MCP25xxFD SPI CAN") Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7eb0881aec
commit
1ba8ddd87b
@@ -1092,7 +1092,7 @@ static int mcp251xfd_chip_start(struct mcp251xfd_priv *priv)
|
||||
|
||||
err = mcp251xfd_chip_rx_int_enable(priv);
|
||||
if (err)
|
||||
return err;
|
||||
goto out_chip_stop;
|
||||
|
||||
err = mcp251xfd_chip_ecc_init(priv);
|
||||
if (err)
|
||||
|
||||
Reference in New Issue
Block a user