summaryrefslogtreecommitdiffstats
path: root/fs/orangefs
diff options
context:
space:
mode:
authorMike Marshall2018-06-01 18:19:45 +0200
committerMike Marshall2018-06-01 20:51:36 +0200
commit817e9b4d9e660761e1e613aa294bf77d2e7c7310 (patch)
treebdd031825e002215485f9a6b63954147f1d64ef1 /fs/orangefs
parentorangefs: formatting cleanups (diff)
downloadkernel-qcow2-linux-817e9b4d9e660761e1e613aa294bf77d2e7c7310.tar.gz
kernel-qcow2-linux-817e9b4d9e660761e1e613aa294bf77d2e7c7310.tar.xz
kernel-qcow2-linux-817e9b4d9e660761e1e613aa294bf77d2e7c7310.zip
orangefs: specify user pointers when using dev_map_desc and bufmap
Sparse lead me to the dev_map_desc one and Al Viro lead me to the bufmap one. Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r--fs/orangefs/orangefs-bufmap.c2
-rw-r--r--fs/orangefs/protocol.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/orangefs/orangefs-bufmap.c b/fs/orangefs/orangefs-bufmap.c
index e3302f8d6429..c4699a164f76 100644
--- a/fs/orangefs/orangefs-bufmap.c
+++ b/fs/orangefs/orangefs-bufmap.c
@@ -138,7 +138,7 @@ static int get(struct slot_map *m)
/* used to describe mapped buffers */
struct orangefs_bufmap_desc {
- void *uaddr; /* user space address pointer */
+ void __user *uaddr; /* user space address pointer */
struct page **page_array; /* array of mapped pages */
int array_count; /* size of above arrays */
struct list_head list_link;
diff --git a/fs/orangefs/protocol.h b/fs/orangefs/protocol.h
index 61ee8d64c842..d403cf29a99b 100644
--- a/fs/orangefs/protocol.h
+++ b/fs/orangefs/protocol.h
@@ -342,7 +342,7 @@ enum {
* that may be 32 bit!
*/
struct ORANGEFS_dev_map_desc {
- void *ptr;
+ void __user *ptr;
__s32 total_size;
__s32 size;
__s32 count;