Skip to content

Commit

Permalink
rcutorture: Fix missing-return bug in rcu_torture_barrier_init()
Browse files Browse the repository at this point in the history
This commit adds a missing error return to the code path that creates
the rcu_torture_barrier() kthread.

Signed-off-by: Paul E. McKenney <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
  • Loading branch information
paulmck committed Feb 23, 2014
1 parent 7fafaac commit bc8f83e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/rcu/rcutorture.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bc8f83e

Please sign in to comment.