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

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 15b8e0a..fc68e8b 100644 (file)
@@ -1448,7 +1448,7 @@ free_lmv:
 
                if (cmd == IOC_MDC_GETFILEINFO ||
                    cmd == IOC_MDC_GETFILESTRIPE) {
-                       filename = ll_getname((const char *)arg);
+                       filename = ll_getname((const char __user *)arg);
                        if (IS_ERR(filename))
                                return PTR_ERR(filename);