summaryrefslogtreecommitdiff
path: root/net/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/net.c')
-rw-r--r--net/net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/net.c b/net/net.c
index 4758595..3081829 100644
--- a/net/net.c
+++ b/net/net.c
@@ -251,7 +251,8 @@ NetLoop(proto_t protocol)
}
eth_halt();
- eth_init(bd);
+ if(eth_init(bd) < 0)
+ return(-1);
restart:
#ifdef CONFIG_NET_MULTI