Skip to content
Commit e54ababa authored by Michael Ellerman's avatar Michael Ellerman Committed by Will Deacon
Browse files

kvm tools: powerpc: Fix buglet in xics_init() handling of nrcpus



In xics_init() we set the maximum server to kvm->nrcpus, and then set
the nr_servers using maximum server + 1.

That is off by one, in the harmless direction.

Simplify it to just set nr_servers = kvm->nrcpus.

Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
parent 36ad4dcf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment