]> git.ipfire.org Git - people/ms/linux.git/commitdiff
KVM: s390: unintended fallthrough for external call
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 3 Sep 2014 14:21:32 +0000 (16:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:43:06 +0000 (09:43 -0700)
commit f346026e55f1efd3949a67ddd1dcea7c1b9a615e upstream.

We must not fallthrough if the conditions for external call are not met.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kvm/interrupt.c

index f4c819bfc1930933bbe9f10f38b4167ef96340e8..fe482ec99bae5d666f828f86e299c58730acd428 100644 (file)
@@ -85,6 +85,7 @@ static int __interrupt_is_deliverable(struct kvm_vcpu *vcpu,
                        return 0;
                if (vcpu->arch.sie_block->gcr[0] & 0x2000ul)
                        return 1;
+               return 0;
        case KVM_S390_INT_EMERGENCY:
                if (psw_extint_disabled(vcpu))
                        return 0;