Commit b61e5e80 authored by Joerg Roedel's avatar Joerg Roedel

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: default avatarJoerg Roedel <jroedel@suse.de>
parent 66ef950d
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment