projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d81056b
)
ACPI / tables: test the correct variable
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 22 Sep 2015 12:29:25 +0000
(15:29 +0300)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Wed, 14 Oct 2015 23:31:24 +0000
(
01:31
+0200)
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>
drivers/acpi/tables.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/tables.c
b/drivers/acpi/tables.c
index c1ff58de99e980d94646f4546bdf490706d765c3..6c0f0794aa82bd007a14effaa21494043e3eb8e1 100644
(file)
--- 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++;