]> Git Repo - linux.git/commit
iommu/vt-d: Fix sysfs leak in alloc_iommu()
authorRolf Eike Beer <[email protected]>
Tue, 25 May 2021 07:08:02 +0000 (15:08 +0800)
committerJoerg Roedel <[email protected]>
Thu, 27 May 2021 14:07:08 +0000 (16:07 +0200)
commit0ee74d5a48635c848c20f152d0d488bf84641304
tree3bad8d46a95d36d38500cd6a4a493c6e39ed0164
parent54c80d907400189b09548039be8f3b6e297e8ae3
iommu/vt-d: Fix sysfs leak in alloc_iommu()

iommu_device_sysfs_add() is called before, so is has to be cleaned on subsequent
errors.

Fixes: 39ab9555c2411 ("iommu: Add sysfs bindings for struct iommu_device")
Cc: [email protected] # 4.11.x
Signed-off-by: Rolf Eike Beer <[email protected]>
Acked-by: Lu Baolu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
drivers/iommu/intel/dmar.c
This page took 0.072302 seconds and 4 git commands to generate.