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>
Loading
Please sign in to comment