Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1458348

[PATCH v2 1/2] ACPI/tables: Correct the wrong count increasing

From Baoquan He <bhe@redhat.com>
Newsgroups linux.kernel
Subject [PATCH v2 1/2] ACPI/tables: Correct the wrong count increasing
Date 2016-08-09 02:40 +0200
Message-ID <s43fj-h8-5@gated-at.bofh.it> (permalink)
References <s41Qd-7Ui-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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
---

v1->v2:
    V1 is a wrong post because I didn't update the tested code to my
    local laptop. Repost with a correct v2.

 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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] ACPI/tables: Correct the wrong count increasing Baoquan He <bhe@redhat.com> - 2016-08-09 01:10 +0200
  Re: [PATCH 1/2] ACPI/tables: Correct the wrong count increasing kbuild test robot <lkp@intel.com> - 2016-08-09 01:30 +0200
    Re: [PATCH 1/2] ACPI/tables: Correct the wrong count increasing Baoquan He <bhe@redhat.com> - 2016-08-09 02:30 +0200
  [PATCH v2 1/2] ACPI/tables: Correct the wrong count increasing Baoquan He <bhe@redhat.com> - 2016-08-09 02:40 +0200

csiph-web