mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-05 14:14:54 +00:00
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>
This commit is contained in:
parent
1824c723ac
commit
695be0e7a2
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue