Commit 61dad0ba authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman

staging/lustre: Properly cast ll_fid2path argument to __user in ll_file_ioctl

When calling ll_fid2path, it expects a userspace pointer.
Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 02f9c12e
...@@ -2296,7 +2296,7 @@ ll_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -2296,7 +2296,7 @@ ll_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
return 0; return 0;
} }
case OBD_IOC_FID2PATH: case OBD_IOC_FID2PATH:
return ll_fid2path(inode, (void *)arg); return ll_fid2path(inode, (void __user *)arg);
case LL_IOC_DATA_VERSION: { case LL_IOC_DATA_VERSION: {
struct ioc_data_version idv; struct ioc_data_version idv;
int rc; int rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment