summaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-03-12 23:15:27 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-03-12 23:15:27 +0000
commitae38fd1e4c98588314a42097c5a5e77dcef23561 (patch)
treef9f10c203bb9e5fbad4810d1f8774c08dfad20ff /fs/exec.c
parent466a823d79f41d0713b272e48fd73e494b0588e0 (diff)
Merge with Linux 2.3.50.
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 694bba675..1b881e123 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -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;
}