iommu/vt-d: Fix error handling in sva enable/disable paths
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 16 Feb 2023 13:08:13 +0000 (21:08 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 16 Feb 2023 13:43:04 +0000 (14:43 +0100)
commit60b1daa3b168fbc648ae2ad28a84759223e49e18
tree9e45eb444d0961bd5422bc4a175b93d364958003
parentd8a7c0cf05a2ac79d3cbd0c0ed7d01ec01f75980
iommu/vt-d: Fix error handling in sva enable/disable paths

Roll back all previous actions in error paths of intel_iommu_enable_sva()
and intel_iommu_disable_sva().

Fixes: d5b9e4bfe0d8 ("iommu/vt-d: Report prq to io-pgfault framework")
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20230208051559.700109-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c