proc->thread stage 4: rework the VFS and DEVICE subsystems to take thread
[dragonfly.git] / sys / dev / serial / stli / istallion.c
index 5219089..6886123 100644 (file)
@@ -34,7 +34,7 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/i386/isa/istallion.c,v 1.36.2.2 2001/08/30 12:29:57 murray Exp $
- * $DragonFly: src/sys/dev/serial/stli/istallion.c,v 1.2 2003/06/17 04:28:37 dillon Exp $
+ * $DragonFly: src/sys/dev/serial/stli/istallion.c,v 1.3 2003/06/25 03:55:54 dillon Exp $
  */
 
 /*****************************************************************************/
@@ -1014,7 +1014,7 @@ stliopen_restart:
                        }
                }
                if ((tp->t_state & TS_XCLUDE) &&
-                   suser(p)) {
+                   suser(td)) {
                        error = EBUSY;
                        goto stliopen_end;
                }
@@ -1200,7 +1200,7 @@ STATIC int stliioctl(dev_t dev, unsigned long cmd, caddr_t data, int flag,
 
                switch (cmd) {
                case TIOCSETA:
-                       if ((error = suser(p)) == 0)
+                       if ((error = suser(td)) == 0)
                                *localtios = *((struct termios *) data);
                        break;
                case TIOCGETA:
@@ -1336,7 +1336,7 @@ STATIC int stliioctl(dev_t dev, unsigned long cmd, caddr_t data, int flag,
                *((int *) data) = (portp->sigs | TIOCM_LE);
                break;
        case TIOCMSDTRWAIT:
-               if ((error = suser(p)) == 0)
+               if ((error = suser(td)) == 0)
                        portp->dtrwait = *((int *) data) * hz / 100;
                break;
        case TIOCMGDTRWAIT: