ed_ioctl() can be called from ifpromisc() after the card has been removed,

don't panic on a NULL pointer in that case.
This commit is contained in:
phk 2000-06-01 21:55:49 +00:00
parent b61defa154
commit 8c26ca6dab

View File

@ -2507,7 +2507,7 @@ ed_ioctl(ifp, command, data)
struct ed_softc *sc = ifp->if_softc;
int s, error = 0;
if (sc->gone) {
if (sc == NULL || sc->gone) {
ifp->if_flags &= ~IFF_RUNNING;
return ENXIO;
}