Skip to content

Commit

Permalink
iommu/vt-d: Fix an error handling path in 'intel_prepare_irq_remappin…
Browse files Browse the repository at this point in the history
…g()'

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

Fixes: ad3d190 ("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>
  • Loading branch information
Christophe JAILLET authored and Joerg Roedel committed Apr 15, 2021
1 parent 906f86c commit 745610c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/intel/irq_remapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ static int __init intel_prepare_irq_remapping(void)
return -ENODEV;

if (intel_cap_audit(CAP_AUDIT_STATIC_IRQR, NULL))
goto error;
return -ENODEV;

if (!dmar_ir_support())
return -ENODEV;
Expand Down

0 comments on commit 745610c

Please sign in to comment.