pata_atiixp: update port enabledness test handling
[safe/jmp/linux-2.6] / drivers / acpi / tables.c
index c341918..775c97a 100644 (file)
@@ -300,6 +300,8 @@ int __init acpi_table_init(void)
 
 static int __init acpi_parse_apic_instance(char *str)
 {
+       if (!str)
+               return -EINVAL;
 
        acpi_apic_instance = simple_strtoul(str, NULL, 0);