Wrap accesses to the fd_sets in struct fdtable
[pandora-kernel.git] / fs / proc / base.c
index 1ace83d..ed000c1 100644 (file)
@@ -1830,7 +1830,7 @@ static int proc_fd_info(struct inode *inode, struct path *path, char *info)
 
                        fdt = files_fdtable(files);
                        f_flags = file->f_flags & ~O_CLOEXEC;
-                       if (FD_ISSET(fd, fdt->close_on_exec))
+                       if (close_on_exec(fd, fdt))
                                f_flags |= O_CLOEXEC;
 
                        if (path) {