diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-03-12 23:15:27 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-03-12 23:15:27 +0000 |
commit | ae38fd1e4c98588314a42097c5a5e77dcef23561 (patch) | |
tree | f9f10c203bb9e5fbad4810d1f8774c08dfad20ff /fs/exec.c | |
parent | 466a823d79f41d0713b272e48fd73e494b0588e0 (diff) |
Merge with Linux 2.3.50.
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -84,6 +84,7 @@ int open_dentry(struct dentry * dentry, int mode) struct list_head * l = NULL; int fd, error; + lock_kernel(); if (inode->i_sb) l = &inode->i_sb->s_files; @@ -111,6 +112,7 @@ int open_dentry(struct dentry * dentry, int mode) fd_install(fd, f); dget(dentry); } + unlock_kernel(); return fd; out_filp: @@ -120,6 +122,7 @@ out_filp: out_fd: put_unused_fd(fd); out: + unlock_kernel(); return error; } |