Skip to content

Commit

Permalink
KVM: s390: pfmf: handle address overflows
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Hildenbrand authored and Christian Borntraeger committed Jun 10, 2016
1 parent 1824c72 commit 695be0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/kvm/priv.c
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit 695be0e

Please sign in to comment.