[PATCH] iommu/arm-smmu-v3: Fix size calculation in arm_smmu_mm_invalidate_range()
Nicolin Chen
nicolinc at nvidia.com
Tue Apr 19 16:36:47 PDT 2022
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
More information about the linux-arm-kernel
mailing list