Add Giant around linux_getcwd_common() in linux_getcwd().

Approved by:	re (scottl)
This commit is contained in:
John Baldwin 2005-07-09 12:34:49 +00:00
parent 4641373fde
commit 02295eedc7

View File

@ -465,8 +465,10 @@ linux_getcwd(struct thread *td, struct linux_getcwd_args *args)
* limit it to N/2 vnodes for an N byte buffer.
*/
mtx_lock(&Giant);
error = linux_getcwd_common (td->td_proc->p_fd->fd_cdir, NULL,
&bp, path, len/2, GETCWD_CHECK_ACCESS, td);
mtx_unlock(&Giant);
if (error)
goto out;