diff options
author | rik <rik@FreeBSD.org> | 2004-06-09 17:58:51 +0000 |
---|---|---|
committer | rik <rik@FreeBSD.org> | 2004-06-09 17:58:51 +0000 |
commit | c298d11504ba291b24d865b166403192861c70ba (patch) | |
tree | fc41b6e673984ddab3a96374dbbe6c751e2d2a20 /sys/dev/cx | |
parent | 0a027ed49a334a9fe60e38f19d3dd40fdf9d73ca (diff) | |
download | FreeBSD-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/dev/cx')
-rw-r--r-- | sys/dev/cx/if_cx.c | 2 |
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); |