linux/drivers/net/ethernet/synopsys
Dan Carpenter 31c7ba9eff net: dwc-xlgmac: fix an error code in xlgmac_alloc_pages()
The dma_mapping_error() returns true if there is an error but we want
to return -ENOMEM and not 1.

Fixes: 65e0ace2c5 ("net: dwc-xlgmac: Initial driver for DesignWare Enterprise Ethernet")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jie Deng <jiedeng@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-22 12:46:10 -07:00
..
Kconfig net: dwc-xlgmac: Initial driver for DesignWare Enterprise Ethernet 2017-03-09 13:29:27 -08:00
Makefile net: dwc-xlgmac: Initial driver for DesignWare Enterprise Ethernet 2017-03-09 13:29:27 -08:00
dwc-xlgmac-common.c net: dwc-xlgmac: add module license 2017-03-22 10:52:34 -07:00
dwc-xlgmac-desc.c net: dwc-xlgmac: fix an error code in xlgmac_alloc_pages() 2017-03-22 12:46:10 -07:00
dwc-xlgmac-hw.c net: dwc-xlgmac: include dcbnl.h 2017-03-22 10:52:33 -07:00
dwc-xlgmac-net.c net: dwc-xlgmac: Initial driver for DesignWare Enterprise Ethernet 2017-03-09 13:29:27 -08:00
dwc-xlgmac-pci.c net: dwc-xlgmac: Initial driver for DesignWare Enterprise Ethernet 2017-03-09 13:29:27 -08:00
dwc-xlgmac-reg.h net: dwc-xlgmac: Initial driver for DesignWare Enterprise Ethernet 2017-03-09 13:29:27 -08:00
dwc-xlgmac.h net: dwc-xlgmac: Initial driver for DesignWare Enterprise Ethernet 2017-03-09 13:29:27 -08:00