Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311727
b: refs/heads/master
c: 332a2e1
h: refs/heads/master
i:
  311725: 34d0ed0
  311723: b739b77
  311719: 81045a6
  311711: 4272c0a
v: v3
  • Loading branch information
Linus Torvalds committed Jul 8, 2012
1 parent a231a23 commit 2495d2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: cd6407fe220c5cf26c117457f5bcdfd6a81fbef8
refs/heads/master: 332a2e1244bd08b9e3ecd378028513396a004a24
6 changes: 3 additions & 3 deletions trunk/fs/open.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,10 @@ SYSCALL_DEFINE1(fchdir, unsigned int, fd)
{
struct file *file;
struct inode *inode;
int error;
int error, fput_needed;

error = -EBADF;
file = fget(fd);
file = fget_raw_light(fd, &fput_needed);
if (!file)
goto out;

Expand All @@ -414,7 +414,7 @@ SYSCALL_DEFINE1(fchdir, unsigned int, fd)
if (!error)
set_fs_pwd(current->fs, &file->f_path);
out_putf:
fput(file);
fput_light(file, fput_needed);
out:
return error;
}
Expand Down

0 comments on commit 2495d2d

Please sign in to comment.