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

From: Richard Weinberger
Date: Sat Dec 25 2021 - 16:55:53 EST


----- Ursprüngliche Mail -----
> Von: s921975628@xxxxxxxxx
> An: "richard" <richard@xxxxxx>, "Vignesh Raghavendra" <vigneshr@xxxxxx>, "Miquel Raynal" <miquel.raynal@xxxxxxxxxxx>
> CC: "linux-mtd" <linux-mtd@xxxxxxxxxxxxxxxxxxx>, "linux-kernel" <linux-kernel@xxxxxxxxxxxxxxx>, "RinHizakura"
> <s921975628@xxxxxxxxx>
> 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@xxxxxxxxx>
>
> 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@xxxxxxxxx>

Reviewed-by: Richard Weinberger <richard@xxxxxx>

Thanks,
//richard