diff options
author | Roman Kurakin <rik@FreeBSD.org> | 2004-06-09 17:58:51 +0000 |
---|---|---|
committer | Roman Kurakin <rik@FreeBSD.org> | 2004-06-09 17:58:51 +0000 |
commit | daac3fffc8603bd4500581c0d1c98bad56196949 (patch) | |
tree | fc41b6e673984ddab3a96374dbbe6c751e2d2a20 | |
parent | ef92aa117e2f9b0da6ee31283f099c8fc0f22a26 (diff) | |
download | src-daac3fffc8603bd4500581c0d1c98bad56196949.tar.gz src-daac3fffc8603bd4500581c0d1c98bad56196949.zip |
Check if we control device. Else we will go to panic cause we don't have
properly initialized dev_t structure at open.
Notes
Notes:
svn path=/head/; revision=130277
-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 2e02e985f017..17f98c2f6449 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); |