Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300368
b: refs/heads/master
c: e994def
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Apr 28, 2012
1 parent c5b990c commit 4f38768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 3f9f0aa687d45cbc8e7bb3cfd3aab555dcc8872e
refs/heads/master: e994defb7b6813ba6fa7a2a36e86d2455ad1dc35
5 changes: 3 additions & 2 deletions trunk/fs/stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@ EXPORT_SYMBOL(vfs_getattr);

int vfs_fstat(unsigned int fd, struct kstat *stat)
{
struct file *f = fget(fd);
int fput_needed;
struct file *f = fget_light(fd, &fput_needed);
int error = -EBADF;

if (f) {
error = vfs_getattr(f->f_path.mnt, f->f_path.dentry, stat);
fput(f);
fput_light(f, fput_needed);
}
return error;
}
Expand Down

0 comments on commit 4f38768

Please sign in to comment.