[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240823173320.441765-1-miquel.raynal@bootlin.com>
Date: Fri, 23 Aug 2024 19:33:20 +0200
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Yan Zhen <yanzhen@...o.com>,
vigneshr@...com,
miquel.raynal@...tlin.com,
richard@....at
Cc: linux-mtd@...ts.infradead.org,
linux-kernel@...r.kernel.org,
opensource.kernel@...o.com
Subject: Re: [PATCH v2] mtd: concat: Use kmemdup_array instead of kmemdup for multiple allocation
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@...o.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel
Powered by blists - more mailing lists