KVM: s390: unintended fallthrough for external call
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 3 Sep 2014 14:21:32 +0000 (16:21 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 10 Sep 2014 10:19:30 +0000 (12:19 +0200)
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>
Cc: stable@vger.kernel.org
arch/s390/kvm/interrupt.c

index d56da1db8ba05b3fedb53f0b58f8c0261eb4cbf2..4abf819a11a55c97d8adbc58c4dc0b6260d6d6c6 100644 (file)
@@ -86,6 +86,7 @@ static int __must_check __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;