mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
02f9c12e32
commit
61dad0ba9a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue