summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrik <rik@FreeBSD.org>2004-06-09 17:58:51 +0000
committerrik <rik@FreeBSD.org>2004-06-09 17:58:51 +0000
commitc298d11504ba291b24d865b166403192861c70ba (patch)
treefc41b6e673984ddab3a96374dbbe6c751e2d2a20 /sys
parent0a027ed49a334a9fe60e38f19d3dd40fdf9d73ca (diff)
downloadFreeBSD-src-c298d11504ba291b24d865b166403192861c70ba.zip
FreeBSD-src-c298d11504ba291b24d865b166403192861c70ba.tar.gz
Check if we control device. Else we will go to panic cause we don't have
properly initialized dev_t structure at open.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/cx/if_cx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cx/if_cx.c b/sys/dev/cx/if_cx.c
index 2e02e98..17f98c2 100644
--- a/sys/dev/cx/if_cx.c
+++ b/sys/dev/cx/if_cx.c
@@ -2140,7 +2140,7 @@ static int cx_ioctl (dev_t dev, u_long cmd, caddr_t data, int flag, struct threa
return 0;
}
- if (c->mode == M_ASYNC && d->tty) {
+ if (c->mode == M_ASYNC && !IF_CUNIT(dev) && d->tty) {
#if __FreeBSD_version >= 502113
error = ttyioctl (dev, cmd, data, flag, td);
ttyldoptim (d->tty);
OpenPOWER on IntegriCloud