From: Thomas Renninger <trenn@suse.de>
To: linux-acpi@vger.kernel.org
Cc: Thomas Renninger <trenn@suse.de>, Saket Dumbre <saket.dumbre@intel.com>
Subject: [PATCH 1/2] ACPI: Use correct region struct for BERT region size check
Date: Fri, 17 Jul 2026 08:51:21 +0200 [thread overview]
Message-ID: <20260717065129.72924-2-trenn@suse.de> (raw)
In-Reply-To: <20260717065129.72924-1-trenn@suse.de>
The structure representing BERT data is struct
acpi_bert_region, so its size should be used in the BERT region size
check.
Signed-off-by: Thomas Renninger <trenn@suse.de>
---
drivers/acpi/sysfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c
index 908cc5c7e643..8395efbe248b 100644
--- a/drivers/acpi/sysfs.c
+++ b/drivers/acpi/sysfs.c
@@ -447,7 +447,7 @@ static int acpi_bert_data_init(void *th, struct acpi_data_attr *data_attr)
struct acpi_table_bert *bert = th;
if (bert->header.length < sizeof(struct acpi_table_bert) ||
- bert->region_length < sizeof(struct acpi_hest_generic_status)) {
+ bert->region_length < sizeof(struct acpi_bert_region)) {
kfree(data_attr);
return -EINVAL;
}
--
2.55.0
next prev parent reply other threads:[~2026-07-17 6:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-17 6:51 [PATCH 0/2] Fix sysfs duplicate filename if multiple BERT tables exist Thomas Renninger
2026-07-17 6:51 ` Thomas Renninger [this message]
2026-07-17 6:51 ` [PATCH 2/2] ACPI: Properly map BERT and CCEL acpi tables to their data tables Thomas Renninger
2026-07-21 19:19 ` [PATCH 0/2] Fix sysfs duplicate filename if multiple BERT tables exist Rafael J. Wysocki (Intel)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260717065129.72924-2-trenn@suse.de \
--to=trenn@suse.de \
--cc=linux-acpi@vger.kernel.org \
--cc=saket.dumbre@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox