diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-11-25 00:50:41 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:57:10 -0500 |
commit | 15169fe784a9846b24cdb0840329d41aebc23249 (patch) | |
tree | ef9e843dcd333204fd7fdca6d21fe96d0647da80 /fs/fhandle.c | |
parent | 143c8c91cee7efdd732ec5f61b3471fc46192f20 (diff) |
vfs: mnt_id/mnt_group_id moved
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fhandle.c')
-rw-r--r-- | fs/fhandle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/fhandle.c b/fs/fhandle.c index 6b088641f5bf..5eff7116951e 100644 --- a/fs/fhandle.c +++ b/fs/fhandle.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/personality.h> | 10 | #include <linux/personality.h> |
11 | #include <asm/uaccess.h> | 11 | #include <asm/uaccess.h> |
12 | #include "internal.h" | 12 | #include "internal.h" |
13 | #include "mount.h" | ||
13 | 14 | ||
14 | static long do_sys_name_to_handle(struct path *path, | 15 | static long do_sys_name_to_handle(struct path *path, |
15 | struct file_handle __user *ufh, | 16 | struct file_handle __user *ufh, |
@@ -66,7 +67,8 @@ static long do_sys_name_to_handle(struct path *path, | |||
66 | } else | 67 | } else |
67 | retval = 0; | 68 | retval = 0; |
68 | /* copy the mount id */ | 69 | /* copy the mount id */ |
69 | if (copy_to_user(mnt_id, &path->mnt->mnt_id, sizeof(*mnt_id)) || | 70 | if (copy_to_user(mnt_id, &real_mount(path->mnt)->mnt_id, |
71 | sizeof(*mnt_id)) || | ||
70 | copy_to_user(ufh, handle, | 72 | copy_to_user(ufh, handle, |
71 | sizeof(struct file_handle) + handle_bytes)) | 73 | sizeof(struct file_handle) + handle_bytes)) |
72 | retval = -EFAULT; | 74 | retval = -EFAULT; |