From: Joerg Roedel Date: Mon, 2 Nov 2015 10:57:31 +0000 (+0900) Subject: iommu/vt-d: Fix return value check of parse_ioapics_under_ir() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b61e5e80e3cd37f0183cdc04b03861a0467d9f52;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c index f3a9bd1bea43..1fae1881648c 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; }