Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the calculation of page count to (un)map
The offset within a page must be taken into the account when calculating the number of pages. As there might be descriptors with size < PAGE_SIZE and size + offset > PAGE_SIZE. Applicable to both foreign and grant mappins. Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
- Loading branch information