diff options
author | David Hildenbrand <dahi@linux.vnet.ibm.com> | 2016-05-12 12:07:05 (GMT) |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2016-06-10 10:07:30 (GMT) |
commit | 695be0e7a24a8875c347437566f2c44ba673580b (patch) | |
tree | 4347fde126c1dee60dd1bc5317728f0c990430ce /arch/s390/kvm/priv.c | |
parent | 1824c723ac90f9870ebafae4b3b3e5f4b82ffeef (diff) | |
download | linux-695be0e7a24a8875c347437566f2c44ba673580b.tar.xz |
KVM: s390: pfmf: handle address overflows
In theory, end could always end up being < start, if overflowing to 0.
Although very unlikely for now, let's just fix it.
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/priv.c')
-rw-r--r-- | arch/s390/kvm/priv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c index 752a1ac..b8327b8 100644 --- a/arch/s390/kvm/priv.c +++ b/arch/s390/kvm/priv.c @@ -715,7 +715,7 @@ static int handle_pfmf(struct kvm_vcpu *vcpu) return kvm_s390_inject_program_int(vcpu, PGM_SPECIFICATION); } - while (start < end) { + while (start != end) { unsigned long useraddr; /* Translate guest address to host address */ |