aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/rcutorture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
index 75ca2a740471..7d20d764b847 100644
--- a/kernel/rcutorture.c
+++ b/kernel/rcutorture.c
@@ -899,7 +899,7 @@ rcu_torture_init(void)
899 /* Set up the freelist. */ 899 /* Set up the freelist. */
900 900
901 INIT_LIST_HEAD(&rcu_torture_freelist); 901 INIT_LIST_HEAD(&rcu_torture_freelist);
902 for (i = 0; i < sizeof(rcu_tortures) / sizeof(rcu_tortures[0]); i++) { 902 for (i = 0; i < ARRAY_SIZE(rcu_tortures); i++) {
903 rcu_tortures[i].rtort_mbtest = 0; 903 rcu_tortures[i].rtort_mbtest = 0;
904 list_add_tail(&rcu_tortures[i].rtort_free, 904 list_add_tail(&rcu_tortures[i].rtort_free,
905 &rcu_torture_freelist); 905 &rcu_torture_freelist);