diff options
| -rw-r--r-- | arch/powerpc/kvm/book3s_xive_native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s_xive_native.c b/arch/powerpc/kvm/book3s_xive_native.c index 53b7159dc305..3caf64b96f7e 100644 --- a/arch/powerpc/kvm/book3s_xive_native.c +++ b/arch/powerpc/kvm/book3s_xive_native.c | |||
| @@ -109,7 +109,7 @@ int kvmppc_xive_native_connect_vcpu(struct kvm_device *dev, | |||
| 109 | return -EPERM; | 109 | return -EPERM; |
| 110 | if (vcpu->arch.irq_type != KVMPPC_IRQ_DEFAULT) | 110 | if (vcpu->arch.irq_type != KVMPPC_IRQ_DEFAULT) |
| 111 | return -EBUSY; | 111 | return -EBUSY; |
| 112 | if (server_num >= KVM_MAX_VCPUS) { | 112 | if (server_num >= (KVM_MAX_VCPUS * vcpu->kvm->arch.emul_smt_mode)) { |
| 113 | pr_devel("Out of bounds !\n"); | 113 | pr_devel("Out of bounds !\n"); |
| 114 | return -EINVAL; | 114 | return -EINVAL; |
| 115 | } | 115 | } |
