diff options
Diffstat (limited to 'net/core/utils.c')
| -rw-r--r-- | net/core/utils.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/utils.c b/net/core/utils.c index fdc4f38bc46..4f96f389243 100644 --- a/net/core/utils.c +++ b/net/core/utils.c @@ -121,7 +121,7 @@ void __init net_random_init(void)  {  	int i; -	for_each_cpu(i) { +	for_each_possible_cpu(i) {  		struct nrnd_state *state = &per_cpu(net_rand_state,i);  		__net_srandom(state, i+jiffies);  	} @@ -133,7 +133,7 @@ static int net_random_reseed(void)  	unsigned long seed[NR_CPUS];  	get_random_bytes(seed, sizeof(seed)); -	for_each_cpu(i) { +	for_each_possible_cpu(i) {  		struct nrnd_state *state = &per_cpu(net_rand_state,i);  		__net_srandom(state, seed[i]);  	}  |