diff options
-rw-r--r-- | libdiskfs/file-lock-stat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libdiskfs/file-lock-stat.c b/libdiskfs/file-lock-stat.c index ce291b76..75341617 100644 --- a/libdiskfs/file-lock-stat.c +++ b/libdiskfs/file-lock-stat.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994 Free Software Foundation + Copyright (C) 1994, 1995 Free Software Foundation This file is part of the GNU Hurd. @@ -30,7 +30,9 @@ diskfs_S_file_lock_stat (struct protid *cred, if (!cred) return EOPNOTSUPP; + mutex_lock (&cred->po->np->lock); *mystatus = cred->po->lock_status; *otherstatus = cred->po->np->userlock.type; + mutex_unlock (&cred->po->np->lock); return 0; } |