[PATCH 27/29] staging/lustre: Properly cast ll_getname argument to __user in ll_dir_ioctl

green at linuxhacker.ru green at linuxhacker.ru
Sun Jan 3 17:05:58 UTC 2016


From: Oleg Drokin <green at linuxhacker.ru>

This makes sparse happy.

Signed-off-by: Oleg Drokin <green at linuxhacker.ru>
---
 drivers/staging/lustre/lustre/llite/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/llite/dir.c b/drivers/staging/lustre/lustre/llite/dir.c
index 8cd594c..7e54650 100644
--- a/drivers/staging/lustre/lustre/llite/dir.c
+++ b/drivers/staging/lustre/lustre/llite/dir.c
@@ -1447,7 +1447,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);
 
-- 
2.1.0



More information about the devel mailing list