mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
ACPI / tables: test the correct variable
The intent was to test "proc[i].handler" instead of "proc->handler". Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
d81056b527
commit
362414d9d2
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user