aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2001-11-24 15:34:18 +0000
committerDima Dorfman <dd@FreeBSD.org>2001-11-24 15:34:18 +0000
commit2c9fb90995c4e551d4f668f5a87309cea17c4f75 (patch)
tree05ff777590ddcbdf66d3c8aef5ab21ad7418d46c /sys/dev
parent2f7a38511482176c806100665bb2edb625c1f3b6 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/snp/snp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c
index e6cf7970e889..0b4504703d67 100644
--- a/sys/dev/snp/snp.c
+++ b/sys/dev/snp/snp.c
@@ -508,6 +508,8 @@ snpioctl(dev, cmd, data, flags, td)
tp = snpdevtotty(tdev);
if (!tp)
return (EINVAL);
+ if (tp->t_state & TS_SNOOP)
+ return (EBUSY);
s = spltty();