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

Commit 362414d9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Rafael J. Wysocki
Browse files

ACPI / tables: test the correct variable



The intent was to test "proc[i].handler" instead of "proc->handler".

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent d81056b5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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++;