diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c index c04cb538c4..ce60963bd5 100644 --- a/module/spl/spl-generic.c +++ b/module/spl/spl-generic.c @@ -638,7 +638,7 @@ spl_random_init(void) "0x%016llx%016llx.", cpu_to_be64(s[0]), cpu_to_be64(s[1])); } - for (i = 0; i < NR_CPUS; i++) { + for_each_possible_cpu(i) { uint64_t *wordp = per_cpu(spl_pseudo_entropy, i); spl_rand_jump(s);