summaryrefslogtreecommitdiff
path: root/drivers/net/can/usb/peak_usb/pcan_usb.c
diff options
context:
space:
mode:
authorStephane Grosjean <s.grosjean@peak-system.com>2014-11-28 13:49:10 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2014-12-06 19:11:18 +0100
commitaf35d0f1cce7a990286e2b94c260a2c2d2a0e4b0 (patch)
treec4ffdebf2e27f251c90540877c251d0454e583ca /drivers/net/can/usb/peak_usb/pcan_usb.c
parentdc50ddcd4c58a5a0226038307d6ef884bec9f8c2 (diff)
can: peak_usb: fix cleanup sequence order in case of error during init
This patch sets the correct reverse sequence order to the instructions set to run, when any failure occurs during the initialization steps. It also adds the missing unregistration call of the can device if the failure appears after having been registered. Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com> Cc: linux-stable <stable@vger.kernel.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/usb/peak_usb/pcan_usb.c')
0 files changed, 0 insertions, 0 deletions