diff options
author | Joe Perches <joe@perches.com> | 2012-06-04 03:16:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-04 13:51:17 -0400 |
commit | f07d90107caeaa6913c70ad97b536f8cec45e8e7 (patch) | |
tree | 56822527ab4d9bf1933a40cc88d9248710ac9ba7 /net/9p/client.c | |
parent | e3192690a3c889767d1161b228374f4926d92af0 (diff) |
net/9p: Add __force to cast of __user pointer
A recent commit that removed unnecessary casts of pointers
to the same type uncovered a missing __force cast.
Add it.
Reported by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/9p/client.c')
-rw-r--r-- | net/9p/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/9p/client.c b/net/9p/client.c index 5cbea903a5a..8260f132b32 100644 --- a/net/9p/client.c +++ b/net/9p/client.c | |||
@@ -1548,7 +1548,7 @@ p9_client_read(struct p9_fid *fid, char *data, char __user *udata, u64 offset, | |||
1548 | kernel_buf = 1; | 1548 | kernel_buf = 1; |
1549 | indata = data; | 1549 | indata = data; |
1550 | } else | 1550 | } else |
1551 | indata = udata; | 1551 | indata = (__force char *)udata; |
1552 | /* | 1552 | /* |
1553 | * response header len is 11 | 1553 | * response header len is 11 |
1554 | * PDU Header(7) + IO Size (4) | 1554 | * PDU Header(7) + IO Size (4) |