kernel_samsung_a53x/drivers/firmware/efi
Arnd Bergmann 89e853c7f5 efi/capsule-loader: fix incorrect allocation size
[ Upstream commit fccfa646ef3628097d59f7d9c1a3e84d4b6bb45e ]

gcc-14 notices that the allocation with sizeof(void) on 32-bit architectures
is not enough for a 64-bit phys_addr_t:

drivers/firmware/efi/capsule-loader.c: In function 'efi_capsule_open':
drivers/firmware/efi/capsule-loader.c:295:24: error: allocation of insufficient size '4' for type 'phys_addr_t' {aka 'long long unsigned int'} with size '8' [-Werror=alloc-size]
  295 |         cap_info->phys = kzalloc(sizeof(void *), GFP_KERNEL);
      |                        ^

Use the correct type instead here.

Fixes: f24c4d478013 ("efi/capsule-loader: Reinstate virtual capsule mapping")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 23:18:29 +01:00
..
libstub Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
apple-properties.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
arm-runtime.c efi: runtime: Fix potential overflow of soft-reserved region size 2024-11-18 22:25:34 +01:00
capsule-loader.c efi/capsule-loader: fix incorrect allocation size 2024-11-18 23:18:29 +01:00
capsule.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cper-arm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cper-x86.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cper.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dev-path-parser.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
earlycon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
efi-bgrt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
efi-init.c efi: Don't add memblocks for soft-reserved memory 2024-11-18 22:25:34 +01:00
efi-pstore.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
efi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
efibc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
efivars.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
embedded-firmware.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
esrt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fake_mem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fake_mem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fdtparams.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memattr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mokvar-table.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rci2-table.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reboot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
riscv-runtime.c efi: runtime: Fix potential overflow of soft-reserved region size 2024-11-18 22:25:34 +01:00
runtime-map.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
runtime-wrappers.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tpm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vars.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x86_fake_mem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00