projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e319269
)
net/9p: Add __force to cast of __user pointer
author
Joe Perches
<
[email protected]
>
Mon, 4 Jun 2012 07:16:14 +0000
(07:16 +0000)
committer
David S. Miller
<
[email protected]
>
Mon, 4 Jun 2012 17:51:17 +0000
(13:51 -0400)
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]
>
net/9p/client.c
patch
|
blob
|
history
diff --git
a/net/9p/client.c
b/net/9p/client.c
index 5cbea903a5abf3b942fa66733bc56159c3a3580d..8260f132b32e0a9d706c38b0969d0879a3f6bf94 100644
(file)
--- 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,
kernel_buf = 1;
indata = data;
} else
- indata = udata;
+ indata =
(__force char *)
udata;
/*
* response header len is 11
* PDU Header(7) + IO Size (4)