]> git.ipfire.org Git - thirdparty/qemu.git/commit
ACPI: Assert that we don't run out of the preallocated memory
authorDongjiu Geng <gengdongjiu@huawei.com>
Mon, 27 Jul 2020 15:12:10 +0000 (16:12 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 27 Jul 2020 15:12:10 +0000 (16:12 +0100)
commit4bf7c0cb09a59314aca261291e3a20a24c7dd3b3
tree6117bfdb425cd85dc699f6623f566d197bd395d2
parent4215d3413272ad6d1c6c9d0234450b602e46a74c
ACPI: Assert that we don't run out of the preallocated memory

data_length is a constant value, so we use assert instead of
condition check.

Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>
Message-id: 20200622113146.33421-1-gengdongjiu@huawei.com
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/acpi/ghes.c