mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
i386: Fix the build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
1 parent
ecec126d43
commit
d9ffcbc5e4
1 file changed
+2
-1
@@ -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)) {
|
||||
|
||||