Skip to content

Commit

Permalink
orangefs: specify user pointers when using dev_map_desc and bufmap
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hubcapsc committed Jun 1, 2018
1 parent 95f5f88 commit 817e9b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/orangefs/orangefs-bufmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion fs/orangefs/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 817e9b4

Please sign in to comment.