i386: Fix the build.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2008-05-01 15:44:35 +01:00
1 parent ecec126d43
commit d9ffcbc5e4
1 file changed
+2 -1
+2 -1
View File
@@ -465,8 +465,9 @@ bad:
static void __init
acpi_fadt_parse_reg(struct acpi_table_fadt *fadt)
{
unsigned int len = min(fadt->header.length, sizeof(*fadt));
unsigned int len;
len = min_t(unsigned int, fadt->header.length, sizeof(*fadt));
memcpy(&acpi_gbl_FADT, fadt, len);
if (len > offsetof(struct acpi_table_fadt, xpm1b_event_block)) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.