Commit f78947c
iommu/vt-d: Unlink device if failed to add to group
If the device fails to be added to the group, make sure to unlink the
reference before returning.
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Fixes: 39ab955 ("iommu: Add sysfs bindings for struct iommu_device")
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent 7d4e6cc commit f78947c
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5624 | 5624 | | |
5625 | 5625 | | |
5626 | 5626 | | |
5627 | | - | |
5628 | | - | |
| 5627 | + | |
| 5628 | + | |
| 5629 | + | |
| 5630 | + | |
5629 | 5631 | | |
5630 | 5632 | | |
5631 | 5633 | | |
| |||
5651 | 5653 | | |
5652 | 5654 | | |
5653 | 5655 | | |
5654 | | - | |
| 5656 | + | |
| 5657 | + | |
5655 | 5658 | | |
5656 | 5659 | | |
5657 | 5660 | | |
| |||
5666 | 5669 | | |
5667 | 5670 | | |
5668 | 5671 | | |
| 5672 | + | |
| 5673 | + | |
| 5674 | + | |
| 5675 | + | |
5669 | 5676 | | |
5670 | 5677 | | |
5671 | 5678 | | |
| |||
0 commit comments