iommu/vt-d: Fix an error handling path in 'intel_prepare_irq_remapping()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 11 Apr 2021 07:08:17 +0000 (09:08 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 15 Apr 2021 13:44:38 +0000 (15:44 +0200)
commit745610c4a3e3baaebf6d1f8cd5b4d82892432520
tree9c1f39fd580d48a63b28906a20c76e2b1177ed1b
parent906f86c860304e84c36cd4c42a6a73928c4ed74c
iommu/vt-d: Fix an error handling path in 'intel_prepare_irq_remapping()'

If 'intel_cap_audit()' fails, we should return directly, as already done in
the surrounding error handling path.

Fixes: ad3d19029979 ("iommu/vt-d: Audit IOMMU Capabilities and add helper functions")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/98d531caabe66012b4fffc7813fd4b9470afd517.1618124777.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/irq_remapping.c