Skip to content

Commit d0d0606

Browse files
committed
rcutorture: Check for rcu_torture_fqs creation errors
The return value from torture_create_kthread() is currently ignored when creating the rcu_torture_fqs kthread. This commit therefore captures the return value so that it can be tested for errors. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
1 parent 9eb97fe commit d0d0606

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎kernel/rcu/rcutorture.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,8 @@ rcu_torture_init(void)
15771577
fqs_duration = 0;
15781578
if (fqs_duration) {
15791579
/* Create the fqs thread */
1580-
torture_create_kthread(rcu_torture_fqs, NULL, fqs_task);
1580+
firsterr = torture_create_kthread(rcu_torture_fqs, NULL,
1581+
fqs_task);
15811582
if (firsterr)
15821583
goto unwind;
15831584
}

0 commit comments

Comments
 (0)