We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f38fa commit a295ec5Copy full SHA for a295ec5
drivers/iommu/amd/init.c
@@ -1626,8 +1626,17 @@ static void __init free_pci_segments(void)
1626
}
1627
1628
1629
+static void __init free_sysfs(struct amd_iommu *iommu)
1630
+{
1631
+ if (iommu->iommu.dev) {
1632
+ iommu_device_unregister(&iommu->iommu);
1633
+ iommu_device_sysfs_remove(&iommu->iommu);
1634
+ }
1635
+}
1636
+
1637
static void __init free_iommu_one(struct amd_iommu *iommu)
1638
{
1639
+ free_sysfs(iommu);
1640
free_cwwb_sem(iommu);
1641
free_command_buffer(iommu);
1642
free_event_buffer(iommu);
0 commit comments