diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2023-02-13 21:02:42 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2023-02-16 04:37:48 +0300 |
commit | b4ff830eca097df51af10a9be29e8cc817327919 (patch) | |
tree | ce95085fe9a23779a5c5f79491e63a37993a4245 /include/linux/mm_types.h | |
parent | b3551ead616318ea155558cdbe7e91495b8d9b33 (diff) | |
download | linux-b4ff830eca097df51af10a9be29e8cc817327919.tar.xz |
iommufd: Do not add the same hwpt to the ioas->hwpt_list twice
The hwpt is added to the hwpt_list only during its creation, it is never
added again. This hunk is some missed leftover from rework. Adding it
twice will corrupt the linked list in some cases.
It effects HWPT specific attachment, which is something the test suite
cannot cover until we can create a legitimate struct device with a
non-system iommu "driver" (ie we need the bus removed from the iommu code)
Cc: stable@vger.kernel.org
Fixes: e8d57210035b ("iommufd: Add kAPI toward external drivers for physical devices")
Link: https://lore.kernel.org/r/1-v1-4336b5cb2fe4+1d7-iommufd_hwpt_jgg@nvidia.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reported-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include/linux/mm_types.h')
0 files changed, 0 insertions, 0 deletions