]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/fhandle.c
Documentation/translation: Use Korean for Korean translation title
[linux.git] / fs / fhandle.c
index 0ace128f5d238c6b3a97cc628f14a21548dafaeb..01263ffbc4c0873544c28f68e408ce314ccddcc9 100644 (file)
@@ -69,8 +69,7 @@ static long do_sys_name_to_handle(struct path *path,
        } else
                retval = 0;
        /* copy the mount id */
-       if (copy_to_user(mnt_id, &real_mount(path->mnt)->mnt_id,
-                        sizeof(*mnt_id)) ||
+       if (put_user(real_mount(path->mnt)->mnt_id, mnt_id) ||
            copy_to_user(ufh, handle,
                         sizeof(struct file_handle) + handle_bytes))
                retval = -EFAULT;
@@ -247,7 +246,7 @@ static long do_handle_open(int mountdirfd, struct file_handle __user *ufh,
  * sys_open_by_handle_at: Open the file handle
  * @mountdirfd: directory file descriptor
  * @handle: file handle to be opened
- * @flag: open flags.
+ * @flags: open flags.
  *
  * @mountdirfd indicate the directory file descriptor
  * of the mount point. file handle is decoded relative