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>
This commit is contained in:
parent
66ef950d18
commit
b61e5e80e3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue