]> www.infradead.org Git - users/jedix/linux-maple.git/commit
efi/cper: Fix cper_arm_ctx_info alignment
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Fri, 21 Feb 2025 11:15:16 +0000 (12:15 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2025 16:30:05 +0000 (17:30 +0100)
commitd6a2d02aa060531607f4a8411ec384470faa2761
tree922a1e051c16eba859741c9552e4310d6f70baf1
parent174e5e9da4f5946de3d09c32ee56cbbc9d70505b
efi/cper: Fix cper_arm_ctx_info alignment

According to the UEFI Common Platform Error Record appendix, the
processor context information structure is a variable length structure,
but "is padded with zeros if the size is not a multiple of 16 bytes".

Currently this isn't honoured, causing all but the first structure to
be garbage when printed. Thus align the size to be a multiple of 16.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/cper-arm.c