staging/lustre: Properly cast ll_fid2path argument to __user in ll_file_ioctl
authorOleg Drokin <green@linuxhacker.ru>
Sun, 3 Jan 2016 17:05:56 +0000 (12:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 22:34:27 +0000 (14:34 -0800)
When calling ll_fid2path, it expects a userspace pointer.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/file.c

index f31f75a446eca699dbf430cc95ae7b4e32d19e7e..132d19b62147ff23d7c03f83f13ebe992186267b 100644 (file)
@@ -2296,7 +2296,7 @@ ll_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                return 0;
        }
        case OBD_IOC_FID2PATH:
-               return ll_fid2path(inode, (void *)arg);
+               return ll_fid2path(inode, (void __user *)arg);
        case LL_IOC_DATA_VERSION: {
                struct ioc_data_version idv;
                int                     rc;
This page took 0.02848 seconds and 5 git commands to generate.