summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2014-09-03 16:21:32 +0200
committerJiri Slaby <jslaby@suse.cz>2014-10-31 15:11:08 +0100
commitdc17be89b79e769835935762f62e7d25c903e7ba (patch)
treed4c74a4fc0c2b7b03889a54bfdf61ce6aadae6f4
parent8d09d4afe2735d152447903f521623dc54ddafa4 (diff)
downloadlwn-dc17be89b79e769835935762f62e7d25c903e7ba.tar.gz
lwn-dc17be89b79e769835935762f62e7d25c903e7ba.zip
KVM: s390: unintended fallthrough for external call
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: Jiri Slaby <jslaby@suse.cz>
-rw-r--r--arch/s390/kvm/interrupt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c
index 7f1f7ac5cf7f..2df491b03687 100644
--- a/arch/s390/kvm/interrupt.c
+++ b/arch/s390/kvm/interrupt.c
@@ -71,6 +71,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;