[PATCH] mtd: rawnand: use kcalloc() instead of kzalloc()
Miquel Raynal
miquel.raynal at bootlin.com
Mon Feb 24 07:40:10 PST 2025
On Sat, 22 Feb 2025 14:19:43 -0500, Ethan Carter Edwards wrote:
> We are trying to get rid of all multiplications from allocation
> functions to prevent integer overflows[1]. Here the multiplication is
> obviously safe, but using kcalloc() is more appropriate and improves
> readability. This patch has no effect on runtime behavior.
>
> Link: https://github.com/KSPP/linux/issues/162 [1]
> Link: https://www.kernel.org/doc/html/next/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments
>
> [...]
Applied to nand/next, thanks!
[1/1] mtd: rawnand: use kcalloc() instead of kzalloc()
commit: 34684bb5e43609ba8ac1a54c4e585493c5486cab
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl
More information about the linux-mtd
mailing list