提交 362414d9 编写于 作者: D Dan Carpenter 提交者: Rafael J. Wysocki

ACPI / tables: test the correct variable

The intent was to test "proc[i].handler" instead of "proc->handler".
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 d81056b5
...@@ -268,7 +268,8 @@ acpi_parse_entries_array(char *id, unsigned long table_size, ...@@ -268,7 +268,8 @@ acpi_parse_entries_array(char *id, unsigned long table_size,
for (i = 0; i < proc_num; i++) { for (i = 0; i < proc_num; i++) {
if (entry->type != proc[i].id) if (entry->type != proc[i].id)
continue; continue;
if (!proc->handler || proc[i].handler(entry, table_end)) if (!proc[i].handler ||
proc[i].handler(entry, table_end))
return -EINVAL; return -EINVAL;
proc->count++; proc->count++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册