diff options
author | Joerg Roedel <jroedel@suse.de> | 2015-11-02 10:57:31 (GMT) |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-11-02 10:57:31 (GMT) |
commit | b61e5e80e3cd37f0183cdc04b03861a0467d9f52 (patch) | |
tree | 3a850c5e2db9e25925eb4693fec8e00d59253467 | |
parent | 66ef950d1841487c852d68d00977726f1cd9f053 (diff) | |
download | linux-b61e5e80e3cd37f0183cdc04b03861a0467d9f52.tar.xz |
iommu/vt-d: Fix return value check of parse_ioapics_under_ir()
The function returns 0 on success, so check for the right
value.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
-rw-r--r-- | drivers/iommu/intel_irq_remapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c index f3a9bd1..1fae188 100644 --- a/drivers/iommu/intel_irq_remapping.c +++ b/drivers/iommu/intel_irq_remapping.c @@ -690,7 +690,7 @@ static int __init intel_prepare_irq_remapping(void) if (!dmar_ir_support()) return -ENODEV; - if (!parse_ioapics_under_ir()) { + if (parse_ioapics_under_ir()) { pr_info("Not enabling interrupt remapping\n"); goto error; } |