Re: [PATCH v10 04/12] iommu: Add attach/detach_dev_pasid iommu interface
From: Baolu Lu
Date: Sun Jul 24 2022 - 04:39:50 EST
On 2022/7/23 22:11, Jason Gunthorpe wrote:
+ xa_erase(&group->pasid_array, pasid);
It is worth checking that the value returned from xa_erase is domain
and WARN_ON if not, since we are passing domain in..
Yes, will do like this:
WARN_ON(xa_erase(&group->pasid_array, pasid) != domain);
Best regards,
baolu