From 817e9b4d9e660761e1e613aa294bf77d2e7c7310 Mon Sep 17 00:00:00 2001 From: Mike Marshall Date: Fri, 1 Jun 2018 12:19:45 -0400 Subject: 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 --- fs/orangefs/orangefs-bufmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/orangefs/orangefs-bufmap.c') diff --git a/fs/orangefs/orangefs-bufmap.c b/fs/orangefs/orangefs-bufmap.c index e3302f8..c4699a1 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; -- cgit v1.1