git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ecryptfs: don't allow mmap when the lower fs doesn't support it
[pandora-kernel.git]
/
fs
/
stat.c
diff --git
a/fs/stat.c
b/fs/stat.c
index
8806b89
..
7b21801
100644
(file)
--- a/
fs/stat.c
+++ b/
fs/stat.c
@@
-57,12
+57,13
@@
EXPORT_SYMBOL(vfs_getattr);
int vfs_fstat(unsigned int fd, struct kstat *stat)
{
int vfs_fstat(unsigned int fd, struct kstat *stat)
{
- struct file *f = fget(fd);
+ int fput_needed;
+ struct file *f = fget_raw_light(fd, &fput_needed);
int error = -EBADF;
if (f) {
error = vfs_getattr(f->f_path.mnt, f->f_path.dentry, stat);
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;
}
}
return error;
}