aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fcntl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fcntl.c')
-rw-r--r--fs/fcntl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fcntl.c b/fs/fcntl.c
index d2f3ed8acd93..863b46e0d78a 100644
--- a/fs/fcntl.c
+++ b/fs/fcntl.c
@@ -40,10 +40,10 @@ static inline int get_close_on_exec(unsigned int fd)
40 struct files_struct *files = current->files; 40 struct files_struct *files = current->files;
41 struct fdtable *fdt; 41 struct fdtable *fdt;
42 int res; 42 int res;
43 spin_lock(&files->file_lock); 43 rcu_read_lock();
44 fdt = files_fdtable(files); 44 fdt = files_fdtable(files);
45 res = FD_ISSET(fd, fdt->close_on_exec); 45 res = FD_ISSET(fd, fdt->close_on_exec);
46 spin_unlock(&files->file_lock); 46 rcu_read_unlock();
47 return res; 47 return res;
48} 48}
49 49