diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-02-17 00:37:05 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-02-17 00:37:05 +0100 |
commit | b1ac5b473768303ba6aaf73b2e9f21e911964d85 (patch) | |
tree | b05839d2c39ffc72166ddb4c5e284e763e168279 /vm | |
parent | 3ce2dbea6ba58768506165ec86b9658f28a13f70 (diff) | |
download | gnumach-b1ac5b473768303ba6aaf73b2e9f21e911964d85.tar.gz gnumach-b1ac5b473768303ba6aaf73b2e9f21e911964d85.tar.bz2 gnumach-b1ac5b473768303ba6aaf73b2e9f21e911964d85.zip |
vm_allocate_contiguous: fix checking the end of the allocation
Diffstat (limited to 'vm')
-rw-r--r-- | vm/vm_user.c | 2 |
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; } |