Re: [PATCH v2] mtd: concat: Use kmemdup_array instead of kmemdup for multiple allocation

From: Miquel Raynal
Date: Fri Aug 23 2024 - 13:34:21 EST


On Fri, 2024-08-23 at 11:08:24 UTC, Yan Zhen wrote:
> When we are allocating an array, using kmemdup_array() to take care about
> multiplication and possible overflows.
>
> Also it makes auditing the code easier.
>
> Signed-off-by: Yan Zhen <yanzhen@xxxxxxxx>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel