Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117293
b: refs/heads/master
c: a6f3053
h: refs/heads/master
i:
  117291: 8c2f0bf
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Oct 23, 2008
1 parent 2f70867 commit ed2848f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9db4fcd99f7ef886ded97cd26a8642c70fbe34df
refs/heads/master: a6f30539f31a8129288b0e5640d3eb1174848c15
14 changes: 9 additions & 5 deletions trunk/drivers/acpi/tables/tbinstal.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ acpi_status
acpi_tb_add_table(struct acpi_table_desc *table_desc, u32 *table_index)
{
u32 i;
u32 length;
acpi_status status = AE_OK;

ACPI_FUNCTION_TRACE(tb_add_table);
Expand Down Expand Up @@ -145,13 +144,18 @@ acpi_tb_add_table(struct acpi_table_desc *table_desc, u32 *table_index)
}
}

/* Check for a table match on the entire table length */
/*
* Check for a table match on the entire table length,
* not just the header.
*/
if (table_desc->length !=
acpi_gbl_root_table_list.tables[i].length) {
continue;
}

length = ACPI_MIN(table_desc->length,
acpi_gbl_root_table_list.tables[i].length);
if (ACPI_MEMCMP(table_desc->pointer,
acpi_gbl_root_table_list.tables[i].pointer,
length)) {
acpi_gbl_root_table_list.tables[i].length)) {
continue;
}

Expand Down

0 comments on commit ed2848f

Please sign in to comment.