aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu/rcutorture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-03-17 23:56:45 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-05-14 12:46:17 -0400
commitd0d0606e2c13ad445a58b9d9547de617429cabf9 (patch)
tree3325245f0b569cb3d99811ad4426b657d48ab546 /kernel/rcu/rcutorture.c
parent9eb97fe7033b459fa0b5eae47b27a61be0d89f25 (diff)
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>
Diffstat (limited to 'kernel/rcu/rcutorture.c')
-rw-r--r--kernel/rcu/rcutorture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c
index 693a90fcee83..dfec2582899f 100644
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -1577,7 +1577,8 @@ rcu_torture_init(void)
1577 fqs_duration = 0; 1577 fqs_duration = 0;
1578 if (fqs_duration) { 1578 if (fqs_duration) {
1579 /* Create the fqs thread */ 1579 /* 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);
1581 if (firsterr) 1582 if (firsterr)
1582 goto unwind; 1583 goto unwind;
1583 } 1584 }