diff options
Diffstat (limited to 'drivers/acpi/namespace/nsxfname.c')
-rw-r--r-- | drivers/acpi/namespace/nsxfname.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/namespace/nsxfname.c b/drivers/acpi/namespace/nsxfname.c index 853e6d170c96..8cd8675a47c0 100644 --- a/drivers/acpi/namespace/nsxfname.c +++ b/drivers/acpi/namespace/nsxfname.c | |||
@@ -300,8 +300,7 @@ acpi_get_object_info(acpi_handle handle, struct acpi_buffer * buffer) | |||
300 | 300 | ||
301 | status = acpi_ut_execute_CID(node, &cid_list); | 301 | status = acpi_ut_execute_CID(node, &cid_list); |
302 | if (ACPI_SUCCESS(status)) { | 302 | if (ACPI_SUCCESS(status)) { |
303 | size += ((acpi_size) cid_list->count - 1) * | 303 | size += cid_list->size; |
304 | sizeof(struct acpi_compatible_id); | ||
305 | info->valid |= ACPI_VALID_CID; | 304 | info->valid |= ACPI_VALID_CID; |
306 | } | 305 | } |
307 | 306 | ||