diff options
| -rw-r--r-- | virt/kvm/arm/vgic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index 0cc6ab6005a0..4b2c2e7856a3 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c | |||
| @@ -1583,8 +1583,10 @@ int kvm_vgic_create(struct kvm *kvm, u32 type) | |||
| 1583 | * emulation. So check this here again. KVM_CREATE_DEVICE does | 1583 | * emulation. So check this here again. KVM_CREATE_DEVICE does |
| 1584 | * the proper checks already. | 1584 | * the proper checks already. |
| 1585 | */ | 1585 | */ |
| 1586 | if (type == KVM_DEV_TYPE_ARM_VGIC_V2 && !vgic->can_emulate_gicv2) | 1586 | if (type == KVM_DEV_TYPE_ARM_VGIC_V2 && !vgic->can_emulate_gicv2) { |
| 1587 | return -ENODEV; | 1587 | ret = -ENODEV; |
| 1588 | goto out; | ||
| 1589 | } | ||
| 1588 | 1590 | ||
| 1589 | /* | 1591 | /* |
| 1590 | * Any time a vcpu is run, vcpu_load is called which tries to grab the | 1592 | * Any time a vcpu is run, vcpu_load is called which tries to grab the |
