Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1708931
| From | Dongjiu Geng <gengdongjiu@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] acpi: apei: fix the wrongly parse generic error status block |
| Date | 2017-08-10 19:50 +0200 |
| Message-ID | <ucZKO-jX-33@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The revision 0x300 generic error data entry is different with the old
version. when ghes_do_proc traverses to get the data entry, it does not
consider this difference. so when error status block has revision 0x300
data entry, it will have issue.
Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>
---
drivers/acpi/apei/apei-internal.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/apei/apei-internal.h b/drivers/acpi/apei/apei-internal.h
index 6e9f14c0a71b..6491f1c4a96e 100644
--- a/drivers/acpi/apei/apei-internal.h
+++ b/drivers/acpi/apei/apei-internal.h
@@ -122,8 +122,8 @@ struct dentry *apei_get_debugfs_dir(void);
#define apei_estatus_for_each_section(estatus, section) \
for (section = (struct acpi_hest_generic_data *)(estatus + 1); \
- (void *)section - (void *)estatus < estatus->data_length; \
- section = (void *)(section+1) + section->error_data_length)
+ (void *)section - (void *)(estatus + 1) < estatus->data_length; \
+ section = acpi_hest_get_next(section))
static inline u32 cper_estatus_len(struct acpi_hest_generic_status *estatus)
{
--
2.14.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] acpi: apei: fix the wrongly parse generic error status block Dongjiu Geng <gengdongjiu@huawei.com> - 2017-08-10 19:50 +0200
Re: [PATCH] acpi: apei: fix the wrongly parse generic error status block "Baicar, Tyler" <tbaicar@codeaurora.org> - 2017-08-10 19:50 +0200
Re: [PATCH] acpi: apei: fix the wrongly parse generic error status block gengdongjiu <gengdongjiu@huawei.com> - 2017-08-10 23:40 +0200
Re: [PATCH] acpi: apei: fix the wrongly parse generic error status block "Baicar, Tyler" <tbaicar@codeaurora.org> - 2017-08-11 15:30 +0200
Re: [PATCH] acpi: apei: fix the wrongly parse generic error status block gengdongjiu <gengdongjiu@huawei.com> - 2017-08-10 23:40 +0200
csiph-web