|
@@ -76,7 +76,7 @@ EXPORT_SYMBOL(vfs_statfs);
|
|
int user_statfs(const char __user *pathname, struct kstatfs *st)
|
|
int user_statfs(const char __user *pathname, struct kstatfs *st)
|
|
{
|
|
{
|
|
struct path path;
|
|
struct path path;
|
|
- int error = user_path(pathname, &path);
|
|
|
|
|
|
+ int error = user_path_at(AT_FDCWD, pathname, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &path);
|
|
if (!error) {
|
|
if (!error) {
|
|
error = vfs_statfs(&path, st);
|
|
error = vfs_statfs(&path, st);
|
|
path_put(&path);
|
|
path_put(&path);
|