[PATCH next] mtd: nand: realtek-ecc: Fix a IS_ERR() vs NULL bug in probe
Geert Uytterhoeven
geert at linux-m68k.org
Wed Oct 8 02:38:05 PDT 2025
On Fri, 3 Oct 2025 at 11:30, Dan Carpenter <dan.carpenter at linaro.org> 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 at linaro.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas at glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
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
More information about the linux-mtd
mailing list