Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329010
b: refs/heads/master
c: e10ce27
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Sep 27, 2012
1 parent 62d0b5b commit 9c854a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 64e09fa2e1fef1696a8685c7aad7e0d3dd24ce71
refs/heads/master: e10ce27f0df9eda7b36eb16e553f07a9e05c6bba
8 changes: 4 additions & 4 deletions trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1790,9 +1790,9 @@ static int prctl_set_mm_exe_file(struct mm_struct *mm, unsigned int fd)
{
struct file *exe_file;
struct dentry *dentry;
int err;
int err, fput_needed;

exe_file = fget(fd);
exe_file = fget_light(fd, &fput_needed);
if (!exe_file)
return -EBADF;

Expand Down Expand Up @@ -1839,12 +1839,12 @@ static int prctl_set_mm_exe_file(struct mm_struct *mm, unsigned int fd)
goto exit_unlock;

err = 0;
set_mm_exe_file(mm, exe_file);
set_mm_exe_file(mm, exe_file); /* this grabs a reference to exe_file */
exit_unlock:
up_write(&mm->mmap_sem);

exit:
fput(exe_file);
fput_light(exe_file, fput_needed);
return err;
}

Expand Down

0 comments on commit 9c854a2

Please sign in to comment.