Re: [PATCH] mtd: nand: check nand_mtd_to_devnum() argument

2023-11-13 Thread Michael Nazzareno Trimarchi
On Thu, Nov 2, 2023 at 12:38 PM Dario Binacchi wrote: > > If the "mtd" parameter is NULL, the search will definitely yield a > negative result. In that case, it's better to exit immediately. > > Signed-off-by: Dario Binacchi > > --- > > drivers/mtd/nand/raw/nand.c | 5 - > 1 file changed, 4

[PATCH] mtd: nand: check nand_mtd_to_devnum() argument

2023-11-02 Thread Dario Binacchi
If the "mtd" parameter is NULL, the search will definitely yield a negative result. In that case, it's better to exit immediately. Signed-off-by: Dario Binacchi --- drivers/mtd/nand/raw/nand.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/nand.c b