table_compute_checksum() returns the value that makes the byte sum of the buffer zero. If the ext_checksum field already contains a non-zero value (as QEMU's firmware-provided RSDP does), adding that existing value into the sum produces an incorrect complement. Zero the field before calling table_compute_checksum() so the calculation starts from a clean state, matching the pattern used in acpi_write_rsdp(). Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>