]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
efi: efibc: change kmalloc(size * count, ...) to kmalloc_array()
authorEthan Carter Edwards <ethan@ethancedwards.com>
Sun, 9 Mar 2025 01:27:41 +0000 (20:27 -0500)
committerArd Biesheuvel <ardb@kernel.org>
Mon, 10 Mar 2025 17:22:47 +0000 (18:22 +0100)
commitac2efaa8455021ce1e6216457684d60a9e2c77fd
tree243e4495a6b9201d1a1ab9479a6e4c1553385929
parentb6b227e36b5ad878260f5a3a1838f2d79d5e68e9
efi: efibc: change kmalloc(size * count, ...) to kmalloc_array()

Open coded arithmetic in allocator arguments is discouraged. Helper
functions like kcalloc or, in this case, kmalloc_array are preferred.

Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/efibc.c