]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcp251xfd: mcp251xfd_probe(): add missing can_rx_offload_del() in error path
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 2 May 2021 09:34:34 +0000 (11:34 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 6 May 2021 07:24:06 +0000 (09:24 +0200)
commit7b86452f92dc3eef90ff9d4f902b18d4f7f220e0
tree6b647fa2cd33fef1d3286f516e3659a1bc790ffb
parentb415471691f157ac7cffac58b12bb59173f0cee0
can: mcp251xfd: mcp251xfd_probe(): add missing can_rx_offload_del() in error path

This patch adds the missing can_rx_offload_del(), that must be called
if mcp251xfd_register() fails.

Fixes: 74ed7c9bd838 ("can: mcp25xxfd: add driver for Microchip MCP25xxFD SPI CAN")
Link: https://lore.kernel.org/r/20210504091838.1109047-1-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c