]> git.baikalelectronics.ru Git - kernel.git/commit
can: tcan4x5x: tcan4x5x_can_probe(): add missing error handling if mcan_class is...
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 19 Aug 2019 17:34:28 +0000 (19:34 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 20 Aug 2019 11:41:26 +0000 (13:41 +0200)
commit9edf7a472b6c9772b959aeb95bbfb0afc75b179c
tree8e51039cc175296e5b1d1dce1942131006e1f9ee
parent6fcd1d0e09a9ffab15f1da300ff933f4b75322ec
can: tcan4x5x: tcan4x5x_can_probe(): add missing error handling if mcan_class is NULL

This patch adds the missing error handling in tcan4x5x_can_probe() if
mcan_class is NULL.

Fixes: 727cb235a4a1 ("can: tcan4x5x: Add tcan4x5x driver to the kernel")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/tcan4x5x.c