# Re: \[PATCH\] mtd: rawnand: fsmc: Fix error code in fsmc\_nand\_probe()

- From: Miquel Raynal \<miquel.raynal@bootlin.com\>
- Date: 2021-03-02 20:39:32 
- List: kernel-janitors
- Page: https://ratatoskr.run/kernel-janitors/2021/03/6285795
- Thread: https://ratatoskr.run/kernel-janitors/2021/02/6270464/t.md

```text
On Mon, 2021-02-15 at 15:58:49 UTC, Dan Carpenter wrote:
> If dma_request_channel() fails then the probe fails and it should
> return a negative error code, but currently it returns success.
> 
> fixes: 4774fb0a48aa ("mtd: nand/fsmc: Add DMA support")
> Signed-off-by: Dan Carpenter <redacted>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel
```
