[PATCH v2] mtd: concat: Use kmemdup_array instead of kmemdup for multiple allocation
Miquel Raynal
miquel.raynal at bootlin.com
Fri Aug 23 10:33:20 PDT 2024
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 at vivo.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel
More information about the linux-mtd
mailing list