Commit bc8f83e2 authored by Paul E. McKenney's avatar Paul E. McKenney

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: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
parent 7fafaac5
...@@ -1245,6 +1245,7 @@ static int rcu_torture_barrier_init(void) ...@@ -1245,6 +1245,7 @@ static int rcu_torture_barrier_init(void)
ret = PTR_ERR(barrier_task); ret = PTR_ERR(barrier_task);
VERBOSE_TOROUT_ERRSTRING("Failed to create rcu_torture_barrier"); VERBOSE_TOROUT_ERRSTRING("Failed to create rcu_torture_barrier");
barrier_task = NULL; barrier_task = NULL;
return ret;
} }
torture_shuffle_task_register(barrier_task); torture_shuffle_task_register(barrier_task);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment