Index: com.c
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/com.c,v
retrieving revision 1.249
diff -u -p -r1.249 com.c
--- com.c 22 Jul 2006 09:22:21 -0000 1.249
+++ com.c 22 Jul 2006 09:35:01 -0000
@@ -1022,8 +1022,8 @@ comioctl(dev_t dev, u_long cmd, caddr_t
error = 0;
switch (cmd) {
case TIOCSFLAGS:
- error = kauth_authorize_generic(p->p_cred,
- KAUTH_GENERIC_ISSUSER, &p->p_acflag);
+ error = kauth_authorize_generic(l->l_proc->p_cred,
+ KAUTH_GENERIC_ISSUSER, &l->l_proc->p_acflag);
break;
default:
/* nothing */