From c500eb7208e61eaf0e89307e558e84533a357a3a Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 18 Dec 1995 18:48:03 +0000 Subject: Formerly dir-mkfile.c.~2~ --- libnetfs/dir-mkfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libnetfs/dir-mkfile.c') diff --git a/libnetfs/dir-mkfile.c b/libnetfs/dir-mkfile.c index b64255f7..ef9b6395 100644 --- a/libnetfs/dir-mkfile.c +++ b/libnetfs/dir-mkfile.c @@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ #include "netfs.h" +#include "misc.h" #include "fs_S.h" error_t @@ -30,8 +31,7 @@ netfs_S_dir_mkfile (struct protid *diruser, int flags, mode_t mode, struct protid *newpi; mutex_lock (&diruser->po->np->lock); - err = netfs_attempt_mkfile (diruser->credential, diruser->po->np, - flags, mode &np); + err = netfs_attempt_mkfile (diruser->credential, diruser->po->np, mode, &np); if (!err) { @@ -43,7 +43,7 @@ netfs_S_dir_mkfile (struct protid *diruser, int flags, mode_t mode, *newfile = ports_get_right (newpi); *newfiletype = MACH_MSG_TYPE_COPY_SEND; ports_port_deref (newpi); - mutex_unlock (&np->lock); + netfs_nput (np); return 0; } else -- cgit v1.2.3