Commit 4af4b840 authored by Michael Hennerich's avatar Michael Hennerich Committed by Bryan Wu

Blackfin Ethernet MAC driver: fix bug Report returned -ENOMEM upwards (in case...

Blackfin Ethernet MAC driver: fix bug Report returned -ENOMEM upwards (in case L1/uncached memory alloc fails)

Bug tracker: https://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3399Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
parent 50e163ce
...@@ -798,6 +798,7 @@ static void bf537mac_shutdown(struct net_device *dev) ...@@ -798,6 +798,7 @@ static void bf537mac_shutdown(struct net_device *dev)
*/ */
static int bf537mac_open(struct net_device *dev) static int bf537mac_open(struct net_device *dev)
{ {
int retval;
pr_debug("%s: %s\n", dev->name, __FUNCTION__); pr_debug("%s: %s\n", dev->name, __FUNCTION__);
/* /*
...@@ -811,7 +812,10 @@ static int bf537mac_open(struct net_device *dev) ...@@ -811,7 +812,10 @@ static int bf537mac_open(struct net_device *dev)
} }
/* initial rx and tx list */ /* initial rx and tx list */
desc_list_init(); retval = desc_list_init();
if (retval)
return retval;
bf537mac_setphy(dev); bf537mac_setphy(dev);
setup_system_regs(dev); setup_system_regs(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment