]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.16.7/kvm-s390-unintended-fallthrough-for-external-call.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.16.7 / kvm-s390-unintended-fallthrough-for-external-call.patch
CommitLineData
1cdca915
GKH
1From f346026e55f1efd3949a67ddd1dcea7c1b9a615e Mon Sep 17 00:00:00 2001
2From: Christian Borntraeger <borntraeger@de.ibm.com>
3Date: Wed, 3 Sep 2014 16:21:32 +0200
4Subject: KVM: s390: unintended fallthrough for external call
5
6From: Christian Borntraeger <borntraeger@de.ibm.com>
7
8commit f346026e55f1efd3949a67ddd1dcea7c1b9a615e upstream.
9
10We must not fallthrough if the conditions for external call are not met.
11
12Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
13Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
14Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15
16---
17 arch/s390/kvm/interrupt.c | 1 +
18 1 file changed, 1 insertion(+)
19
20--- a/arch/s390/kvm/interrupt.c
21+++ b/arch/s390/kvm/interrupt.c
22@@ -85,6 +85,7 @@ static int __interrupt_is_deliverable(st
23 return 0;
24 if (vcpu->arch.sie_block->gcr[0] & 0x2000ul)
25 return 1;
26+ return 0;
27 case KVM_S390_INT_EMERGENCY:
28 if (psw_extint_disabled(vcpu))
29 return 0;