summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/iommu
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2023-02-16 04:21:16 +0300
committerJoerg Roedel <jroedel@suse.de>2023-02-16 12:20:31 +0300
commit4daa861174d56023c2068ddb03de0752f07fa199 (patch)
tree678a273aa30aecd4755f4042488b43a52ab0b278 /Documentation/devicetree/bindings/iommu
parent4762315d1c971312d55848fdc85eee7f0b09c8f2 (diff)
downloadlinux-4daa861174d56023c2068ddb03de0752f07fa199.tar.xz
iommu: Fix error unwind in iommu_group_alloc()
If either iommu_group_grate_file() fails then the iommu_group is leaked. Destroy it on these error paths. Found by kselftest/iommu/iommufd_fail_nth Fixes: bc7d12b91bd3 ("iommu: Implement reserved_regions iommu-group sysfs file") Fixes: c52c72d3dee8 ("iommu: Add sysfs attribyte for domain type") Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/0-v1-8f616bee028d+8b-iommu_group_alloc_leak_jgg@nvidia.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'Documentation/devicetree/bindings/iommu')
0 files changed, 0 insertions, 0 deletions