On Tue, Apr 19, 2022 at 08:10:34PM -0300, Jason Gunthorpe wrote:
size_t size = end - start + 1;
size_t size;
/*
* The mm_types defines vm_end as the first byte after the end address,
* different from IOMMU subsystem using the last address of an address
* range. So do a simple translation here by calculating size correctly.
*/
size = end - start;
I would skip the comment though
It's a bit of highlight here to help us remember in the future, per Robin's comments at my previous patch.
Thanks! Nic