diff options
Diffstat (limited to 'fs/statfs.c')
-rw-r--r-- | fs/statfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/statfs.c b/fs/statfs.c index 8244924dec55..9cf04a118965 100644 --- a/fs/statfs.c +++ b/fs/statfs.c | |||
@@ -76,7 +76,7 @@ EXPORT_SYMBOL(vfs_statfs); | |||
76 | int user_statfs(const char __user *pathname, struct kstatfs *st) | 76 | int user_statfs(const char __user *pathname, struct kstatfs *st) |
77 | { | 77 | { |
78 | struct path path; | 78 | struct path path; |
79 | int error = user_path(pathname, &path); | 79 | int error = user_path_at(AT_FDCWD, pathname, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &path); |
80 | if (!error) { | 80 | if (!error) { |
81 | error = vfs_statfs(&path, st); | 81 | error = vfs_statfs(&path, st); |
82 | path_put(&path); | 82 | path_put(&path); |