summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/rcutorture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-02-03 10:02:41 -0800
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-02-23 09:03:22 -0800
commitbc8f83e2c0d585b201dfbb52e98f6f8741d324ea (patch)
tree54e3bf1a0e7b0918731338638e0ecf1456d15b89 /kernel/rcu/rcutorture.c
parent7fafaac5b9ce22cc57777865390520476ad2262d (diff)
downloadblackbird-op-linux-bc8f83e2c0d585b201dfbb52e98f6f8741d324ea.tar.gz
blackbird-op-linux-bc8f83e2c0d585b201dfbb52e98f6f8741d324ea.zip
rcutorture: Fix missing-return bug in rcu_torture_barrier_init()
This commit adds a missing error return to the code path that creates the rcu_torture_barrier() kthread. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcu/rcutorture.c')
-rw-r--r--kernel/rcu/rcutorture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c
index bcaafd6cf633..25e9b16fe7f0 100644
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -1245,6 +1245,7 @@ static int rcu_torture_barrier_init(void)
ret = PTR_ERR(barrier_task);
VERBOSE_TOROUT_ERRSTRING("Failed to create rcu_torture_barrier");
barrier_task = NULL;
+ return ret;
}
torture_shuffle_task_register(barrier_task);
return 0;
OpenPOWER on IntegriCloud