From: Dan Carpenter Date: Tue, 22 Sep 2015 12:29:25 +0000 (+0300) Subject: ACPI / tables: test the correct variable X-Git-Tag: v4.4-rc1~135^2~10^3 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=362414d9d2824ee0f4910a73e880860a90e75c3c;p=linux.git ACPI / tables: test the correct variable The intent was to test "proc[i].handler" instead of "proc->handler". Signed-off-by: Dan Carpenter Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index c1ff58de99e9..6c0f0794aa82 100644 --- a/drivers/acpi/tables.c +++ b/drivers/acpi/tables.c @@ -268,7 +268,8 @@ acpi_parse_entries_array(char *id, unsigned long table_size, for (i = 0; i < proc_num; i++) { if (entry->type != proc[i].id) continue; - if (!proc->handler || proc[i].handler(entry, table_end)) + if (!proc[i].handler || + proc[i].handler(entry, table_end)) return -EINVAL; proc->count++;