summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/net/if_ef.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_ef.c b/sys/net/if_ef.c
index 849c8db..2c2828c 100644
--- a/sys/net/if_ef.c
+++ b/sys/net/if_ef.c
@@ -491,7 +491,7 @@ ef_load(void)
{
struct ifnet *ifp;
struct efnet *efp;
- struct ef_link *efl = NULL;
+ struct ef_link *efl = NULL, *efl_temp;
int error = 0, d;
IFNET_RLOCK();
@@ -529,7 +529,7 @@ ef_load(void)
if (error) {
if (efl)
SLIST_INSERT_HEAD(&efdev, efl, el_next);
- SLIST_FOREACH(efl, &efdev, el_next) {
+ SLIST_FOREACH_SAFE(efl, &efdev, el_next, efl_temp) {
for (d = 0; d < EF_NFT; d++)
if (efl->el_units[d]) {
if (efl->el_units[d]->ef_pifp != NULL)
OpenPOWER on IntegriCloud