aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/fcntl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fcntl.c b/fs/fcntl.c
index e7c66a1bf831..e4f26165f12a 100644
--- a/fs/fcntl.c
+++ b/fs/fcntl.c
@@ -305,9 +305,11 @@ void f_delown(struct file *filp)
305pid_t f_getown(struct file *filp) 305pid_t f_getown(struct file *filp)
306{ 306{
307 pid_t pid; 307 pid_t pid;
308 read_lock(&filp->f_owner.lock);
308 pid = pid_nr(filp->f_owner.pid); 309 pid = pid_nr(filp->f_owner.pid);
309 if (filp->f_owner.pid_type == PIDTYPE_PGID) 310 if (filp->f_owner.pid_type == PIDTYPE_PGID)
310 pid = -pid; 311 pid = -pid;
312 read_unlock(&filp->f_owner.lock);
311 return pid; 313 return pid;
312} 314}
313 315