aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm/arm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kvm/arm.c')
-rw-r--r--arch/arm/kvm/arm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c
index 6f536451ab78..d9631ecddd56 100644
--- a/arch/arm/kvm/arm.c
+++ b/arch/arm/kvm/arm.c
@@ -671,8 +671,7 @@ int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_level,
671 if (!irqchip_in_kernel(kvm)) 671 if (!irqchip_in_kernel(kvm))
672 return -ENXIO; 672 return -ENXIO;
673 673
674 if (irq_num < VGIC_NR_PRIVATE_IRQS || 674 if (irq_num < VGIC_NR_PRIVATE_IRQS)
675 irq_num > KVM_ARM_IRQ_GIC_MAX)
676 return -EINVAL; 675 return -EINVAL;
677 676
678 return kvm_vgic_inject_irq(kvm, 0, irq_num, level); 677 return kvm_vgic_inject_irq(kvm, 0, irq_num, level);