diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2005-07-09 12:34:49 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2005-07-09 12:34:49 +0000 |
| commit | 02295eedc7c5deabf25e4002d3a30bc7072c50ae (patch) | |
| tree | 83ff280dbecce1f56ef6f61f94ea6b34559ef9d8 | |
| parent | 4641373fded7dfd64f93f45371e42a3ea6e82559 (diff) | |
Notes
| -rw-r--r-- | sys/compat/linux/linux_getcwd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_getcwd.c b/sys/compat/linux/linux_getcwd.c index 9b810a38ca386..53aae454c23ea 100644 --- a/sys/compat/linux/linux_getcwd.c +++ b/sys/compat/linux/linux_getcwd.c @@ -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; |
