OSDN Git Service

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)
commit7fbda1306542d89984547faf6bfce584e182a541
tree8e51039cc175296e5b1d1dce1942131006e1f9ee
parentad07819f223e26b30cc5ec25a31d906db0788600
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: 5443c226ba91 ("can: tcan4x5x: Add tcan4x5x driver to the kernel")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/tcan4x5x.c