summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-17 00:37:05 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-17 00:37:05 +0100
commitb1ac5b473768303ba6aaf73b2e9f21e911964d85 (patch)
treeb05839d2c39ffc72166ddb4c5e284e763e168279
parent3ce2dbea6ba58768506165ec86b9658f28a13f70 (diff)
vm_allocate_contiguous: fix checking the end of the allocation
-rw-r--r--vm/vm_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm_user.c b/vm/vm_user.c
index 23ac9c3f..ad1fa75d 100644
--- a/vm/vm_user.c
+++ b/vm/vm_user.c
@@ -674,7 +674,7 @@ kern_return_t vm_allocate_contiguous(
*result_paddr = pages->phys_addr;
assert(*result_paddr >= pmin);
- assert(*result_paddr < pmax);
+ assert(*result_paddr + size < pmax);
return KERN_SUCCESS;
}