[PATCH] ACPICA: fix possible NULL dereference

2015-09-10 Thread Sudip Mukherjee
acpi_ns_get_secondary_object() can return NULL, and if it returns NULL then we were dereferencing it while calling acpi_ds_execute_arguments(). Lets have a NULL check and return AE_NOT_EXIST. Signed-off-by: Sudip Mukherjee --- drivers/acpi/acpica/dsargs.c | 3 +++ 1 file changed, 3

[PATCH] ACPICA: fix possible NULL dereference

2015-09-10 Thread Sudip Mukherjee
acpi_ns_get_secondary_object() can return NULL, and if it returns NULL then we were dereferencing it while calling acpi_ds_execute_arguments(). Lets have a NULL check and return AE_NOT_EXIST. Signed-off-by: Sudip Mukherjee --- drivers/acpi/acpica/dsargs.c | 3 +++ 1