Skip to content

Commit

Permalink
Blackfin Ethernet MAC driver: fix bug Report returned -ENOMEM upwards…
Browse files Browse the repository at this point in the history
… (in case L1/uncached memory alloc fails)

Bug tracker: https://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3399

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
  • Loading branch information
Michael Hennerich authored and Bryan Wu committed Jul 25, 2007
1 parent 50e163c commit 4af4b84
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/net/bfin_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ static void bf537mac_shutdown(struct net_device *dev)
*/
static int bf537mac_open(struct net_device *dev)
{
int retval;
pr_debug("%s: %s\n", dev->name, __FUNCTION__);

/*
Expand All @@ -811,7 +812,10 @@ static int bf537mac_open(struct net_device *dev)
}

/* initial rx and tx list */
desc_list_init();
retval = desc_list_init();

if (retval)
return retval;

bf537mac_setphy(dev);
setup_system_regs(dev);
Expand Down

0 comments on commit 4af4b84

Please sign in to comment.