locktorture: Fix module unwind when bad torture_type specified
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 31 Aug 2015 03:01:48 +0000 (20:01 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 6 Oct 2015 18:28:44 +0000 (11:28 -0700)
commita36a99618b1adb2d6ca0b7e08e3a656a04e477fe
treef99dc4e3e38f8c51ccd96435e3c917e3f4a60cec
parenta8c06024d0b557b465ad40b87ef0b51a428f99fd
locktorture: Fix module unwind when bad torture_type specified

The locktorture module has a list of torture types, and specifying
a type not on this list is supposed to cleanly fail the module load.
Unfortunately, the "fail" happens without the "cleanly".  This commit
therefore adds the needed clean-up after an incorrect torture_type.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/locking/locktorture.c