]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Do not detach devices in domain free path
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 30 Oct 2024 06:35:50 +0000 (06:35 +0000)
committerJoerg Roedel <jroedel@suse.de>
Wed, 30 Oct 2024 10:06:43 +0000 (11:06 +0100)
commit07bbd660dbd6ff03907d9ddbdfe9deabbd18ac4d
treeac736de2b1a093778f6a541c5cedbc0fee36a1bb
parentb73c698fd5b4a00888ad5a77ad09d3f6b48baa2d
iommu/amd: Do not detach devices in domain free path

All devices attached to a protection domain must be freed before
calling domain free. Hence do not try to free devices in domain
free path. Continue to throw warning if pdom->dev_list is not empty
so that any potential issues can be fixed.

Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20241030063556.6104-7-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c