Re: [PATCH next] mtd: nand: realtek-ecc: Fix a IS_ERR() vs NULL bug in probe

From: Geert Uytterhoeven
Date: Wed Oct 08 2025 - 05:38:30 EST


On Fri, 3 Oct 2025 at 11:30, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:
> The dma_alloc_noncoherent() function doesn't return error pointers, it
> returns NULL on error. Fix the error checking to match.
>
> Fixes: 3148d0e5b1c5 ("mtd: nand: realtek-ecc: Add Realtek external ECC engine support")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds