Annotate that this giant acqusition is dependent on tty locking.
This commit is contained in:
parent
85b6f9c7d1
commit
2ddeaf9203
@ -502,7 +502,7 @@ devfs_ioctl_f(struct file *fp, u_long com, void *data, struct ucred *cred, struc
|
||||
return (0);
|
||||
}
|
||||
|
||||
mtx_lock(&Giant);
|
||||
mtx_lock(&Giant); /* XXX TTY */
|
||||
|
||||
vpold = td->td_proc->p_session->s_ttyvp;
|
||||
VREF(vp);
|
||||
@ -515,7 +515,7 @@ devfs_ioctl_f(struct file *fp, u_long com, void *data, struct ucred *cred, struc
|
||||
/* Get rid of reference to old control tty */
|
||||
if (vpold)
|
||||
vrele(vpold);
|
||||
mtx_unlock(&Giant);
|
||||
mtx_unlock(&Giant); /* XXX TTY */
|
||||
}
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user