mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
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>
This commit is contained in:
parent
7fafaac5b9
commit
bc8f83e2c0
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue