summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-03-03 16:33:41 +0000
committerBruce Evans <bde@FreeBSD.org>1997-03-03 16:33:41 +0000
commite4d202a8ae8bc0d6f77a55b7253ae7a12e7baca8 (patch)
tree2f0a5316f21a23536d6ccb6179d1a4bd84f15221
parent9bdc993298d0e20369f53e245a010d0f9022bc2d (diff)
Notes
-rw-r--r--sys/i386/isa/pcvt/pcvt_ext.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_ext.c b/sys/i386/isa/pcvt/pcvt_ext.c
index b27575f351ab..11a6b1e3df24 100644
--- a/sys/i386/isa/pcvt/pcvt_ext.c
+++ b/sys/i386/isa/pcvt/pcvt_ext.c
@@ -2507,16 +2507,17 @@ usl_vt_ioctl(Dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
return EBUSY; /* already in use on this VT */
}
- if (ISSIGVALID(newmode->relsig) && ISSIGVALID(newmode->acqsig)
- && ISSIGVALID(newmode->frsig)) {
- vsp->smode = newmode;
- vsp->proc = p;
- vsp->pid = p->p_pid;
- } else {
+ if (!ISSIGVALID(newmode.relsig) || !ISSIGVALID(newmode.acqsig)
+ || !ISSIGVALID(newmode.frsig))
+ {
splx(opri);
return EINVAL;
}
+ vsp->smode = newmode;
+ vsp->proc = p;
+ vsp->pid = p->p_pid;
+
#if PCVT_FREEBSD > 206
/*
* XXX: If pcvt is acting as the systems console,