staging/lustre: Properly cast ll_fid2path argument to __user in ll_dir_ioctl
authorOleg Drokin <green@linuxhacker.ru>
Sun, 3 Jan 2016 17:05:57 +0000 (12:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 22:34:27 +0000 (14:34 -0800)
This makes sparse happier.

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

index 5b41162..15b8e0a 100644 (file)
@@ -1736,7 +1736,7 @@ out_quotactl:
                                    sizeof(struct ioc_changelog));
                return rc;
        case OBD_IOC_FID2PATH:
-               return ll_fid2path(inode, (void *)arg);
+               return ll_fid2path(inode, (void __user *)arg);
        case LL_IOC_HSM_REQUEST: {
                struct hsm_user_request *hur;
                ssize_t                  totalsize;