diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-06-01 21:55:49 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-06-01 21:55:49 +0000 |
| commit | 855e8bb9ad055d87909235d286180ac13fe69312 (patch) | |
| tree | 7854c91faf33690aeda5987019b713bae8c50ff5 /sys/dev/ed | |
| parent | 51f32c1d17da4034d772af1dfb46f8dea6a2b9eb (diff) | |
Notes
Diffstat (limited to 'sys/dev/ed')
| -rw-r--r-- | sys/dev/ed/if_ed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c index 7ab26455e5f2..bc5c07785d81 100644 --- a/sys/dev/ed/if_ed.c +++ b/sys/dev/ed/if_ed.c @@ -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; } |
