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:
parent
b61defa154
commit
8c26ca6dab
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user