Messages in this thread | | | Date | Sun, 24 Jul 2022 16:39:21 +0800 | Subject | Re: [PATCH v10 04/12] iommu: Add attach/detach_dev_pasid iommu interface | From | Baolu Lu <> |
| |
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
| |