acpi: fix buffer overrun on migration