Skip to content

Commit

Permalink
net/9p: Add __force to cast of __user pointer
Browse files Browse the repository at this point in the history
A recent commit that removed unnecessary casts of pointers
to the same type uncovered a missing __force cast.

Add it.

Reported by: Ben Hutchings <[email protected]>
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
JoePerches authored and davem330 committed Jun 4, 2012
1 parent e319269 commit f07d901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/9p/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ p9_client_read(struct p9_fid *fid, char *data, char __user *udata, u64 offset,
kernel_buf = 1;
indata = data;
} else
indata = udata;
indata = (__force char *)udata;
/*
* response header len is 11
* PDU Header(7) + IO Size (4)
Expand Down

0 comments on commit f07d901

Please sign in to comment.