[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <174041161086.1746756.7095949485766246490.b4-ty@bootlin.com>
Date: Mon, 24 Feb 2025 16:40:10 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Ethan Carter Edwards <ethan@...ancedwards.com>
Cc: linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH] mtd: rawnand: use kcalloc() instead of kzalloc()
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
Powered by blists - more mailing lists