On systems without a DMAR table and with DMAR enabled, we will oops in dmar_ir_supported. This patch makes sure we actually have a DMAR table before checking it. https://bugzilla.novell.com/show_bug.cgi?id=548108#c27 Reported-by: Bruno Friedmann <bruno@xxxxxxxxxxx> Signed-off-by: Jeff Mahoney <jeffm@xxxxxxxx> --- drivers/pci/dmar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/pci/dmar.c +++ b/drivers/pci/dmar.c @@ -1460,5 +1460,5 @@ int __init dmar_ir_support(void) { struct acpi_table_dmar *dmar; dmar = (struct acpi_table_dmar *)dmar_tbl; - return dmar->flags & 0x1; + return dmar && dmar->flags & 0x1; } -- Jeff Mahoney SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html