diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c index 86277fe22564..c5d74d543aae 100644 --- a/sys/dev/ed/if_ed.c +++ b/sys/dev/ed/if_ed.c @@ -2639,7 +2639,7 @@ ed_ioctl(ifp, command, data) */ if (ifp->if_flags & IFF_UP) { if ((ifp->if_flags & IFF_RUNNING) == 0) - ed_init(ifp->if_softc); + ed_init(sc); } else { if (ifp->if_flags & IFF_RUNNING) { ed_stop(sc); diff --git a/sys/i386/isa/if_ed.c b/sys/i386/isa/if_ed.c index 86277fe22564..c5d74d543aae 100644 --- a/sys/i386/isa/if_ed.c +++ b/sys/i386/isa/if_ed.c @@ -2639,7 +2639,7 @@ ed_ioctl(ifp, command, data) */ if (ifp->if_flags & IFF_UP) { if ((ifp->if_flags & IFF_RUNNING) == 0) - ed_init(ifp->if_softc); + ed_init(sc); } else { if (ifp->if_flags & IFF_RUNNING) { ed_stop(sc);