summaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2018-05-17 14:33:54 +0300
committerChristian Borntraeger <borntraeger@de.ibm.com>2018-05-17 14:33:54 +0300
commit6302a13feee5ba03298a367e0f5b96a21c5b65a9 (patch)
treee3e17dc209cfed401f9df2c12d55853b864a33db /arch/s390
parent33d1b2729e409e8327dec2d13a9144dfa76a947c (diff)
parentf4a551b72358facbbe5714248dff78404272feee (diff)
downloadlinux-6302a13feee5ba03298a367e0f5b96a21c5b65a9.tar.xz
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/s390')
-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;
}