Commit 922cb32c authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman

staging/lustre: Update user pointers in struct obd_ioctl_data

Make them void __user * instead of char * (or char __user *),
void * removes the necessity of explicit casts to proper type
where people also need to remember __user qualifiers, so I think
it works better here.
Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 33ab3abc
...@@ -153,9 +153,9 @@ struct obd_ioctl_data { ...@@ -153,9 +153,9 @@ struct obd_ioctl_data {
/* buffers the kernel will treat as user pointers */ /* buffers the kernel will treat as user pointers */
__u32 ioc_plen1; __u32 ioc_plen1;
char *ioc_pbuf1; void __user *ioc_pbuf1;
__u32 ioc_plen2; __u32 ioc_plen2;
char *ioc_pbuf2; void __user *ioc_pbuf2;
/* inline buffers for various arguments */ /* inline buffers for various arguments */
__u32 ioc_inllen1; __u32 ioc_inllen1;
......
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