hw/acpi: Fix size of HID in build_append_srat_acpi_device_handle()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 7 Nov 2024 12:34:42 +0000 (12:34 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Nov 2024 22:18:06 +0000 (17:18 -0500)
commit13a4a6ba2bfd3cf9bd34a015929d93868d792de8
treea897b6ae06d60c0410126375619e027d17829704
parente069c115e00d9eeb1ad6bf224775585c3d30177d
hw/acpi: Fix size of HID in build_append_srat_acpi_device_handle()

The size should always be 8 so hard code that. By coincidience the
incorrect use of sizeof(char *) is 8 on 64 bit hosts, but was caught
by CI testing with i686 as the host.

Reported-by: Michael S. Tsirkin <mst@redhat.com>
Closes: https://lore.kernel.org/qemu-devel/20241104110025-mutt-send-email-mst@kernel.org/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20241107123446.902801-2-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
hw/acpi/aml-build.c