rcutorture: Fix module unwind when bad torture_type specified
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 24 Aug 2015 18:37:58 +0000 (11:37 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 6 Oct 2015 18:28:01 +0000 (11:28 -0700)
commit889d487a26de4bcd1a0a668754bcbce893969edf
tree4fab7a1467d8edcbb0eb6f66af2f6864d539edca
parent19a5ecde086a6a5287978b12ae948fa691b197b7
rcutorture: Fix module unwind when bad torture_type specified

The rcutorture 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.

Reported-by: David Miller <davem@davemloft.net>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: David Miller <davem@davemloft.net>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/rcutorture.c