Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0df2d6b authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andi Kleen
Browse files

acpi: add checking for NULL early param



The early_param handling function could recieve NULL pointer as argument
in case if user didn't enter parameter value.  So we have to be ready for
a such situation and do check for NULL pointer if needed.

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
parent 1371c893
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -300,6 +300,8 @@ int __init acpi_table_init(void)


static int __init acpi_parse_apic_instance(char *str)
static int __init acpi_parse_apic_instance(char *str)
{
{
	if (!str)
		return -EINVAL;


	acpi_apic_instance = simple_strtoul(str, NULL, 0);
	acpi_apic_instance = simple_strtoul(str, NULL, 0);