aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/tables.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/tables.c')
-rw-r--r--drivers/acpi/tables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c
index 4ec44258e4ff..a17619bfb57b 100644
--- a/drivers/acpi/tables.c
+++ b/drivers/acpi/tables.c
@@ -293,7 +293,7 @@ int __init acpi_table_parse(char *id, acpi_tbl_table_handler handler)
293 if (acpi_disabled) 293 if (acpi_disabled)
294 return -ENODEV; 294 return -ENODEV;
295 295
296 if (!handler) 296 if (!id || !handler)
297 return -EINVAL; 297 return -EINVAL;
298 298
299 if (strncmp(id, ACPI_SIG_MADT, 4) == 0) 299 if (strncmp(id, ACPI_SIG_MADT, 4) == 0)