commit | af35d0f1cce7a990286e2b94c260a2c2d2a0e4b0 | [log] [tgz] |
---|---|---|
author | Stephane Grosjean <s.grosjean@peak-system.com> | Fri Nov 28 13:49:10 2014 +0100 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Sat Dec 06 19:11:18 2014 +0100 |
tree | c4ffdebf2e27f251c90540877c251d0454e583ca | |
parent | dc50ddcd4c58a5a0226038307d6ef884bec9f8c2 [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>