diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2008-01-24 15:37:48 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2008-01-24 15:37:48 +0000 |
| commit | eee74fe05d86b6be3ee663ef31aaa0a087f8e2c0 (patch) | |
| tree | 045cb9d9e9e3618b4e3f5b44d381c0cd58069189 | |
| parent | 623c393d650e4ee1ecb7092c7bd00b1f08901777 (diff) | |
Notes
| -rw-r--r-- | sys/dev/syscons/syscons.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 152e51f98ca7..677ab57fb16b 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -1071,6 +1071,8 @@ scioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td) if (error) return error; scp = sc_get_stat(SC_DEV(sc, i)); + if (scp == NULL) + return (ENXIO); if (scp == scp->sc->cur_scp) return 0; error = tsleep(&scp->smode, PZERO | PCATCH, "waitvt", 0); |
