summaryrefslogtreecommitdiff
path: root/net/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/net.c')
-rw-r--r--net/net.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/net.c b/net/net.c
index 00aa661..7c3744d 100644
--- a/net/net.c
+++ b/net/net.c
@@ -303,8 +303,10 @@ NetLoop(proto_t protocol)
#ifdef CONFIG_NET_MULTI
eth_set_current();
#endif
- if (eth_init(bd) < 0)
+ if (eth_init(bd) < 0) {
+ eth_halt();
return(-1);
+ }
restart:
#ifdef CONFIG_NET_MULTI
@@ -383,6 +385,7 @@ restart:
switch (net_check_prereq (protocol)) {
case 1:
/* network not configured */
+ eth_halt();
return (-1);
#ifdef CONFIG_NET_MULTI