Fix up mm/mincore.c error value cases
[sfrench/cifs-2.6.git] / fs / stat.c
index a0ebfc7f8a6446e361a0146fc39dbbc5883c058f..38a8cb2a28de4292047f93fa6fae59bf1490eb7d 100644 (file)
--- a/fs/stat.c
+++ b/fs/stat.c
@@ -102,7 +102,7 @@ int vfs_fstat(unsigned int fd, struct kstat *stat)
        int error = -EBADF;
 
        if (f) {
-               error = vfs_getattr(f->f_vfsmnt, f->f_dentry, stat);
+               error = vfs_getattr(f->f_path.mnt, f->f_path.dentry, stat);
                fput(f);
        }
        return error;