public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ACPI/tables: Correct the wrong count increasing
@ 2016-08-08 23:01 Baoquan He
  2016-08-08 23:01 ` [PATCH 2/2] x86, ACPI: Fix the wrong assignment when Handle apic/x2apic entries Baoquan He
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Baoquan He @ 2016-08-08 23:01 UTC (permalink / raw)
  To: linux-kernel; +Cc: Baoquan He, Rafael J. Wysocki, Len Brown, linux-acpi

The current code always increases the count in the 1st element of
array proc[].

Signed-off-by: Baoquan He <bhe@redhat.com>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Len Brown <lenb@kernel.org>
Cc: linux-acpi@vger.kernel.org
---
 drivers/acpi/tables.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c
index 9f0ad6e..34d45bb 100644
--- a/drivers/acpi/tables.c
+++ b/drivers/acpi/tables.c
@@ -281,7 +281,7 @@ acpi_parse_entries_array(char *id, unsigned long table_size,
 			     proc[i].handler(entry, table_end))
 				return -EINVAL;
 
-			proc->count++;
+			proc[i]->count++;
 			break;
 		}
 		if (i != proc_num)
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-08-16  8:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-08 23:01 [PATCH 1/2] ACPI/tables: Correct the wrong count increasing Baoquan He
2016-08-08 23:01 ` [PATCH 2/2] x86, ACPI: Fix the wrong assignment when Handle apic/x2apic entries Baoquan He
2016-08-10 12:53   ` Ingo Molnar
2016-08-10 13:03     ` Baoquan He
2016-08-11  8:46       ` Ingo Molnar
2016-08-11 14:20         ` Baoquan He
2016-08-08 23:27 ` [PATCH 1/2] ACPI/tables: Correct the wrong count increasing kbuild test robot
2016-08-09  0:28   ` Baoquan He
2016-08-09  0:30 ` [PATCH v2 " Baoquan He
2016-08-16  2:26   ` Zheng, Lv
2016-08-16  8:21     ` Baoquan He

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox