aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2023-06-05 21:59:46 -0300
committerJoerg Roedel <[email protected]>2023-07-14 16:14:15 +0200
commitcfb6ee65f7603a0605fa8f5fe5b0782f0731c81c (patch)
tree5bf30c845d0cab97799a8b34d867f0488f2fba72 /tools/perf/util
parent9a108996b5b39c8b7b4911bd4fe7f9ad87bc0f72 (diff)
iommu: Always destroy the iommu_group during iommu_release_device()
Have release fully clean up the iommu related parts of the struct device, no matter what state they are in. Split the logic so that the three things owned by the iommu core are always cleaned up: - Any attached iommu_group - Any allocated dev->iommu and its contents including a fwsepc - Any attached driver via a struct group_device This fixes a minor bug where a fwspec created without an iommu_group being probed would not be freed. Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Lu Baolu <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/util')
0 files changed, 0 insertions, 0 deletions