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
parisc: fix copy_from_user()
[pandora-kernel.git]
/
fs
/
statfs.c
diff --git
a/fs/statfs.c
b/fs/statfs.c
index
8244924
..
a133c3e
100644
(file)
--- a/
fs/statfs.c
+++ b/
fs/statfs.c
@@
-76,7
+76,7
@@
EXPORT_SYMBOL(vfs_statfs);
int user_statfs(const char __user *pathname, struct kstatfs *st)
{
struct path path;
int user_statfs(const char __user *pathname, struct kstatfs *st)
{
struct path path;
- int error = user_path
(pathname
, &path);
+ int error = user_path
_at(AT_FDCWD, pathname, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT
, &path);
if (!error) {
error = vfs_statfs(&path, st);
path_put(&path);
if (!error) {
error = vfs_statfs(&path, st);
path_put(&path);
@@
-86,7
+86,7
@@
int user_statfs(const char __user *pathname, struct kstatfs *st)
int fd_statfs(int fd, struct kstatfs *st)
{
int fd_statfs(int fd, struct kstatfs *st)
{
- struct file *file = fget(fd);
+ struct file *file = fget
_raw
(fd);
int error = -EBADF;
if (file) {
error = vfs_statfs(&file->f_path, st);
int error = -EBADF;
if (file) {
error = vfs_statfs(&file->f_path, st);