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
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
2 matches
Mail list logo