projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
906f86c
)
iommu/vt-d: Fix an error handling path in 'intel_prepare_irq_remapping()'
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Sun, 11 Apr 2021 07:08:17 +0000
(09:08 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Thu, 15 Apr 2021 13:44:38 +0000
(15:44 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel/irq_remapping.c
b/drivers/iommu/intel/irq_remapping.c
index 611ef5243cb63b9872c29108a77eade4957ef93e..5c16ebe037a149c852c9b92377b7f2b819c4f29b 100644
(file)
--- a/
drivers/iommu/intel/irq_remapping.c
+++ b/
drivers/iommu/intel/irq_remapping.c
@@
-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;