summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2018-05-17 13:33:54 +0200
committerChristian Borntraeger <borntraeger@de.ibm.com>2018-05-17 13:33:54 +0200
commit6302a13feee5ba03298a367e0f5b96a21c5b65a9 (patch)
treee3e17dc209cfed401f9df2c12d55853b864a33db /arch
parentKVM: s390: generalize kvm_s390_get_tod_clock_ext() (diff)
parentKVM: s390: vsie: fix < 8k check for the itdba (diff)
downloadlinux-6302a13feee5ba03298a367e0f5b96a21c5b65a9.tar.xz
linux-6302a13feee5ba03298a367e0f5b96a21c5b65a9.zip
Merge tag 'kvm-s390-master-4.17-1'
KVM: s390: Fix vsie handling for transactional diagnostic block vsie (nested KVM) might reject a valid input. Fix it.
Diffstat (limited to 'arch')
-rw-r--r--arch/s390/kvm/vsie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kvm/vsie.c b/arch/s390/kvm/vsie.c
index 8961e3970901..969882b54266 100644
--- a/arch/s390/kvm/vsie.c
+++ b/arch/s390/kvm/vsie.c
@@ -578,7 +578,7 @@ static int pin_blocks(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page)
gpa = READ_ONCE(scb_o->itdba) & ~0xffUL;
if (gpa && (scb_s->ecb & ECB_TE)) {
- if (!(gpa & ~0x1fffU)) {
+ if (!(gpa & ~0x1fffUL)) {
rc = set_validity_icpt(scb_s, 0x0080U);
goto unpin;
}