diff options
-rw-r--r-- | drivers/pci/dmar.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/dmar.c b/drivers/pci/dmar.c index edc5f002e055..7771b2dd5978 100644 --- a/drivers/pci/dmar.c +++ b/drivers/pci/dmar.c | |||
@@ -1466,5 +1466,7 @@ int __init dmar_ir_support(void) | |||
1466 | { | 1466 | { |
1467 | struct acpi_table_dmar *dmar; | 1467 | struct acpi_table_dmar *dmar; |
1468 | dmar = (struct acpi_table_dmar *)dmar_tbl; | 1468 | dmar = (struct acpi_table_dmar *)dmar_tbl; |
1469 | if (!dmar) | ||
1470 | return 0; | ||
1469 | return dmar->flags & 0x1; | 1471 | return dmar->flags & 0x1; |
1470 | } | 1472 | } |