]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: Remove device link to group on failure
authorJon Derrick <jonathan.derrick@intel.com>
Tue, 31 Dec 2019 20:24:19 +0000 (13:24 -0700)
committerJoerg Roedel <jroedel@suse.de>
Tue, 7 Jan 2020 16:08:57 +0000 (17:08 +0100)
commitdaed4ec7bc88e5193e67821762e30da4b068bb5e
tree292921f2a548dd438a5dc9e1fdf76ab982c87c8f
parent0c6f43c0aa7e038a0294a0b0cf2688ed504a66bd
iommu: Remove device link to group on failure

This adds the missing teardown step that removes the device link from
the group when the device addition fails.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Fixes: fcc42f4cf7d19 ("iommu: Handle default domain attach failure")
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c