[PATCH 1/3] mtd: rawnand: nandsim: Replace overflow check with kzalloc to single kcalloc

Richard Weinberger richard at nod.at
Sat Dec 25 13:09:13 PST 2021


----- Ursprüngliche Mail -----
> Von: s921975628 at gmail.com
> An: "richard" <richard at nod.at>, "Vignesh Raghavendra" <vigneshr at ti.com>, "Miquel Raynal" <miquel.raynal at bootlin.com>
> CC: "linux-mtd" <linux-mtd at lists.infradead.org>, "linux-kernel" <linux-kernel at vger.kernel.org>, "RinHizakura"
> <s921975628 at gmail.com>
> Gesendet: Samstag, 25. Dezember 2021 11:06:07
> Betreff: [PATCH 1/3] mtd: rawnand: nandsim: Replace overflow check with kzalloc to single kcalloc

> From: RinHizakura <s921975628 at gmail.com>
> 
> Instead of self-checking overflow and allocating an array of specific size
> by counting the total required space handy, we already have existed kernel
> API which responses for all these works.
> 
> Signed-off-by: RinHizakura <s921975628 at gmail.com>

Reviewed-by: Richard Weinberger <richard at nod.at>

Thanks,
//richard



More information about the linux-mtd mailing list