Skip to content

Commit

Permalink
iommu/vt-d: Fix return value check of parse_ioapics_under_ir()
Browse files Browse the repository at this point in the history
The function returns 0 on success, so check for the right
value.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Joerg Roedel committed Nov 2, 2015
1 parent 66ef950 commit b61e5e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/intel_irq_remapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b61e5e8

Please sign in to comment.