[Linux-stm32] [PATCH net-next] net: ethernet: dwmac: Fix an error code in imx_dwmac_probe()

David Miller davem at davemloft.net
Thu Jun 4 22:52:35 UTC 2020


From: Dan Carpenter <dan.carpenter at oracle.com>
Date: Wed, 3 Jun 2020 20:50:25 +0300

> The code is return PTR_ERR(NULL) which is zero or success.  We should
> return -ENOMEM instead.
> 
> Fixes: 94abdad6974a5 ("net: ethernet: dwmac: add ethernet glue logic for NXP imx8 chip")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>

Applied.



More information about the Linux-stm32 mailing list